Searched refs:off (Results 1 - 25 of 708) sorted by relevance

1234567891011>>

/openjdk10/jdk/src/java.base/share/classes/java/io/
H A DBits.java39 static boolean getBoolean(byte[] b, int off) { argument
40 return b[off] != 0;
43 static char getChar(byte[] b, int off) { argument
44 return (char) ((b[off + 1] & 0xFF) +
45 (b[off] << 8));
48 static short getShort(byte[] b, int off) { argument
49 return (short) ((b[off + 1] & 0xFF) +
50 (b[off] << 8));
53 static int getInt(byte[] b, int off) { argument
54 return ((b[off
60 getFloat(byte[] b, int off) argument
64 getLong(byte[] b, int off) argument
75 getDouble(byte[] b, int off) argument
84 putBoolean(byte[] b, int off, boolean val) argument
88 putChar(byte[] b, int off, char val) argument
93 putShort(byte[] b, int off, short val) argument
98 putInt(byte[] b, int off, int val) argument
105 putFloat(byte[] b, int off, float val) argument
109 putLong(byte[] b, int off, long val) argument
120 putDouble(byte[] b, int off, double val) argument
[all...]
H A DOutputStream.java80 * starting at offset <code>off</code> to this output stream.
81 * The general contract for <code>write(b, off, len)</code> is that
83 * output stream in order; element <code>b[off]</code> is the first
84 * byte written and <code>b[off+len-1]</code> is the last byte written
95 * If <code>off</code> is negative, or <code>len</code> is negative, or
96 * <code>off+len</code> is greater than the length of the array
100 * @param off the start offset in the data.
106 public void write(byte b[], int off, int len) throws IOException { argument
109 } else if ((off < 0) || (off >
[all...]
H A DStringBufferInputStream.java105 * @param off the start offset of the data.
112 public synchronized int read(byte b[], int off, int len) { argument
115 } else if ((off < 0) || (off > b.length) || (len < 0) ||
116 ((off + len) > b.length) || ((off + len) < 0)) {
130 buffer.getBytes(pos, pos + len, b, off);
H A DFilterWriter.java72 * @param off Offset from which to start reading characters
76 * If the values of the {@code off} and {@code len} parameters
82 public void write(char cbuf[], int off, int len) throws IOException { argument
83 out.write(cbuf, off, len);
90 * @param off Offset from which to start reading characters
94 * If the values of the {@code off} and {@code len} parameters
100 public void write(String str, int off, int len) throws IOException { argument
101 out.write(str, off, len);
H A DStringWriter.java84 * @param off Offset from which to start writing characters
88 * If {@code off} is negative, or {@code len} is negative,
89 * or {@code off + len} is negative or greater than the length
92 public void write(char cbuf[], int off, int len) { argument
93 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
94 ((off + len) > cbuf.length) || ((off + len) < 0)) {
99 buf.append(cbuf, off, len);
113 * @param off Offse
121 write(String str, int off, int len) argument
[all...]
/openjdk10/jdk/src/java.base/windows/classes/sun/nio/fs/
H A DWindowsPathParser.java99 int off = 0;
110 off = nextNonSlash(input, next, len);
111 next = nextSlash(input, off, len);
112 if (off == next)
114 String host = input.substring(off, next); //host
115 off = nextNonSlash(input, next, len);
116 next = nextSlash(input, off, len);
117 if (off == next)
119 root = "\\\\" + host + "\\" + input.substring(off, next) + "\\";
120 off
163 normalize(StringBuilder sb, String path, int off) argument
203 nextNonSlash(String path, int off, int end) argument
208 nextSlash(String path, int off, int end) argument
[all...]
/openjdk10/hotspot/test/compiler/intrinsics/string/
H A DTestHasNegatives.java51 public static void initialize(int off, int len, int neg) { argument
52 assert (len + off <= tBa.length);
54 for (int i = 0; i < off; ++i) {
58 for (int i = off; i < len + off; ++i) {
59 tBa[i] = (byte) (((i - off + 15) & 0x7F));
67 idx = off + (len - 1) - div * i;
72 for (int i = len + off; i < tBa.length; ++i) {
86 int len, off;
91 for (off
[all...]
/openjdk10/hotspot/test/compiler/loopopts/superword/
H A DTestVectorizationWithInvariant.java69 public static void copyByteToChar(byte[] src1, byte[] src2, char[] dst, int off) { argument
70 off = (int) BYTE_ARRAY_OFFSET + (off << 1);
74 unsafe.putChar(dst, i + 0, unsafe.getChar(src, off + 0));
75 unsafe.putChar(dst, i + 2, unsafe.getChar(src, off + 2));
76 unsafe.putChar(dst, i + 4, unsafe.getChar(src, off + 4));
77 unsafe.putChar(dst, i + 6, unsafe.getChar(src, off + 6));
78 unsafe.putChar(dst, i + 8, unsafe.getChar(src, off + 8));
79 unsafe.putChar(dst, i + 10, unsafe.getChar(src, off + 10));
80 unsafe.putChar(dst, i + 12, unsafe.getChar(src, off
92 copyCharToByte(char[] src, byte[] dst, int off) argument
[all...]
/openjdk10/jdk/src/jdk.zipfs/share/classes/jdk/nio/zipfs/
H A DZipInfo.java108 static void printCEN(byte[] cen, int off) { argument
110 print(" Signature : %#010x%n", CENSIG(cen, off));
111 if (CENSIG(cen, off) != CENSIG) {
116 CENVEM(cen, off), (CENVEM(cen, off) >> 8),
117 (CENVEM(cen, off) & 0xff) / 10,
118 (CENVEM(cen, off) & 0xff) % 10);
120 CENVER(cen, off), CENVER(cen, off) / 10, CENVER(cen, off)
165 printExtra(byte[] extra, int off, int len) argument
[all...]
/openjdk10/langtools/test/tools/javadoc/lib/
H A DOldToolTester.java174 private void prPackage(int off, PackageDoc p) throws IOException { argument
175 prln(off, "package " + p);
176 prAnnotations(off + 2, p.annotations());
179 private void prClass(int off, ClassDoc cd) throws IOException { argument
180 prln(off,
183 prln(off + 2, "name: " + cd.simpleTypeName() + " / " +
185 prAnnotations(off + 2, cd.annotations());
186 prLabel(off + 2, "type parameters");
188 prln(off + 4, t);
189 prParamTags(off
214 prAnnotationType(int off, AnnotationTypeDoc at) argument
228 prField(int off, FieldDoc f) argument
233 prParameter(int off, Parameter p) argument
238 prMethod(int off, MethodDoc m) argument
246 prExecutable(int off, ExecutableMemberDoc m) argument
265 prAnnotations(int off, AnnotationDesc[] as) argument
272 prParamTags(int off, ParamTag tags[]) argument
277 prParamTag(int off, ParamTag tag) argument
295 prLabel(int off, String s) argument
302 popLabels(int off) argument
311 pr(int off, Object o) argument
320 prln(int off, Object o) argument
334 int off; field in class:OldToolTester.Line
336 Line(int off, Object o) argument
[all...]
/openjdk10/jdk/src/java.base/share/classes/com/sun/crypto/provider/
H A DISO10126Padding.java53 * @param off the offset in <code>in</code> where the padding bytes
60 public void padWithLen(byte[] in, int off, int len) argument
66 if ((off + len) > in.length) {
73 System.arraycopy(padding, 0, in, off, len - 1);
74 in[off + len - 1] = paddingOctet;
85 * @param off the offset in <code>in</code> where the padded data starts
91 public int unpad(byte[] in, int off, int len) { argument
97 byte lastByte = in[off + len - 1];
104 int start = off + len - padValue;
105 if (start < off) {
[all...]
H A DPadding.java59 void padWithLen(byte[] in, int off, int len) throws ShortBufferException; argument
68 * @param off the offset in <code>in</code> where the data starts
74 int unpad(byte[] in, int off, int len); argument
H A DPKCS5Padding.java53 * @param off the offset in <code>in</code> where the padding bytes
60 public void padWithLen(byte[] in, int off, int len) argument
66 if ((off + len) > in.length) {
72 in[i + off] = paddingOctet;
84 * @param off the offset in <code>in</code> where the padded data starts
90 public int unpad(byte[] in, int off, int len) { argument
96 byte lastByte = in[off + len - 1];
103 int start = off + len - ((int)lastByte & 0x0ff);
104 if (start < off) {
/openjdk10/jdk/src/java.base/share/classes/sun/nio/cs/
H A DArrayDecoder.java34 int decode(byte[] src, int off, int len, char[] dst); argument
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/module/
H A DChecks.java48 int off = 0;
49 while ((next = name.indexOf('.', off)) != -1) {
50 String id = name.substring(off, next);
55 off = next+1;
57 String last = name.substring(off);
70 int off = 0;
71 while ((next = name.indexOf('.', off)) != -1) {
72 String id = name.substring(off, next);
75 off = next+1;
77 String last = name.substring(off);
[all...]
/openjdk10/jdk/src/jdk.rmic/share/classes/sun/tools/java/
H A DParserActions.java50 void packageDeclaration(long off, IdentifierToken nm); argument
55 void importClass(long off, IdentifierToken nm); argument
60 void importPackage(long off, IdentifierToken nm); argument
68 ClassDefinition beginClass(long off, String doc, argument
77 void endClass(long off, ClassDefinition c); argument
/openjdk10/jdk/test/java/io/charStreams/
H A DABCReader.java53 public int read(char cbuf[], int off, int len) { argument
54 for (int i = off; i < off + len; i++) {
57 if (i > off)
58 return i - off;
/openjdk10/hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc.binformat/src/jdk/tools/jaotc/binformat/macho/
H A DMachOSegment.java37 segment.putInt(segment_command_64.cmd.off, segment_command_64.LC_SEGMENT_64);
38 segment.putInt(segment_command_64.cmdsize.off, size);
39 segment.putInt(segment_command_64.maxprot.off, 7);
40 segment.putInt(segment_command_64.initprot.off, 7);
41 segment.putInt(segment_command_64.nsects.off, nsects);
42 segment.putInt(segment_command_64.flags.off, 0);
43 segment.putLong(segment_command_64.vmaddr.off, 0);
44 segment.putLong(segment_command_64.vmsize.off, filesize);
45 segment.putLong(segment_command_64.fileoff.off, fileoff);
46 segment.putLong(segment_command_64.filesize.off, filesiz
[all...]
/openjdk10/jdk/src/java.base/share/classes/java/util/zip/
H A DInflater.java79 private int off, len; field in class:Inflater
119 * @param off the start offset of the input data
123 public void setInput(byte[] b, int off, int len) { argument
127 if (off < 0 || len < 0 || off > b.length - len) {
132 this.off = off;
154 * @param off the start offset of the data
159 public void setDictionary(byte[] b, int off, int len) { argument
163 if (off <
248 inflate(byte[] b, int off, int len) argument
411 setDictionary(long addr, byte[] b, int off, int len) argument
413 inflateBytes(long addr, byte[] b, int off, int len) argument
[all...]
H A DCRC32.java67 * if {@code off} is negative, or {@code len} is negative, or
68 * {@code off+len} is negative or greater than the length of
72 public void update(byte[] b, int off, int len) { argument
76 if (off < 0 || len < 0 || off > b.length - len) {
79 crc = updateBytes(crc, b, off, len);
133 private static int updateBytes(int crc, byte[] b, int off, int len) { argument
134 updateBytesCheck(b, off, len);
135 return updateBytes0(crc, b, off, len);
139 private static native int updateBytes0(int crc, byte[] b, int off, in argument
141 updateBytesCheck(byte[] b, int off, int len) argument
158 updateByteBuffer(int alder, long addr, int off, int len) argument
165 updateByteBuffer0(int alder, long addr, int off, int len) argument
[all...]
H A DCRC32C.java141 * if {@code off} is negative, or {@code len} is negative, or
142 * {@code off+len} is negative or greater than the length of
146 public void update(byte[] b, int off, int len) { argument
150 if (off < 0 || len < 0 || off > b.length - len) {
153 crc = updateBytes(crc, b, off, (off + len));
210 private static int updateBytes(int crc, byte[] b, int off, int end) { argument
214 if (end - off >= 8 && Unsafe.ARRAY_BYTE_INDEX_SCALE == 1) {
218 = (8 - ((Unsafe.ARRAY_BYTE_BASE_OFFSET + off)
285 updateDirectByteBuffer(int crc, long address, int off, int end) argument
[all...]
/openjdk10/jdk/src/java.base/share/classes/sun/net/
H A DTelnetInputStream.java133 * Read into a byte array at offset <i>off</i> for length <i>length</i>
136 public int read(byte bytes[], int off, int length) throws IOException { argument
138 return super.read(bytes, off, length);
141 int offStart = off;
147 bytes[off++] = (byte)c;
149 return (off > offStart) ? off - offStart : -1;
/openjdk10/hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc.binformat/src/jdk/tools/jaotc/binformat/elf/
H A DElfHeader.java39 header.put(Elf64_Ehdr.e_ident.off + Elf64_Ehdr.EI_MAG0, Elf64_Ehdr.ELFMAG0);
40 header.put(Elf64_Ehdr.e_ident.off + Elf64_Ehdr.EI_MAG1, Elf64_Ehdr.ELFMAG1);
41 header.put(Elf64_Ehdr.e_ident.off + Elf64_Ehdr.EI_MAG2, Elf64_Ehdr.ELFMAG2);
42 header.put(Elf64_Ehdr.e_ident.off + Elf64_Ehdr.EI_MAG3, Elf64_Ehdr.ELFMAG3);
43 header.put(Elf64_Ehdr.e_ident.off + Elf64_Ehdr.EI_CLASS, Elf64_Ehdr.ELFCLASS64);
44 header.put(Elf64_Ehdr.e_ident.off + Elf64_Ehdr.EI_DATA, Elf64_Ehdr.ELFDATA2LSB);
45 header.put(Elf64_Ehdr.e_ident.off + Elf64_Ehdr.EI_VERSION, Elf64_Ehdr.EV_CURRENT);
46 header.put(Elf64_Ehdr.e_ident.off + Elf64_Ehdr.EI_OSABI, Elf64_Ehdr.ELFOSABI_NONE);
48 header.putChar(Elf64_Ehdr.e_type.off, Elf64_Ehdr.ET_REL);
49 header.putChar(Elf64_Ehdr.e_machine.off, ElfTargetInf
[all...]
/openjdk10/hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc.binformat/src/jdk/tools/jaotc/binformat/pecoff/
H A DPECoffHeader.java37 header.putChar(IMAGE_FILE_HEADER.Machine.off, IMAGE_FILE_HEADER.IMAGE_FILE_MACHINE_AMD64);
38 header.putInt(IMAGE_FILE_HEADER.TimeDateStamp.off, (int) (System.currentTimeMillis() / 1000));
39 header.putInt(IMAGE_FILE_HEADER.PointerToSymbolTable.off, 0);
40 header.putInt(IMAGE_FILE_HEADER.NumberOfSymbols.off, 0);
41 header.putChar(IMAGE_FILE_HEADER.SizeOfOptionalHeader.off, (char) 0);
42 header.putChar(IMAGE_FILE_HEADER.Characteristics.off, (char) 0);
48 header.putChar(IMAGE_FILE_HEADER.NumberOfSections.off, (char) count);
53 header.putInt(IMAGE_FILE_HEADER.NumberOfSymbols.off, count);
58 header.putInt(IMAGE_FILE_HEADER.PointerToSymbolTable.off, offset);
H A DPECoffSection.java61 section.put(Name, IMAGE_SECTION_HEADER.Name.off, max);
63 section.putInt(IMAGE_SECTION_HEADER.VirtualSize.off, 0);
64 section.putInt(IMAGE_SECTION_HEADER.VirtualAddress.off, 0);
65 section.putInt(IMAGE_SECTION_HEADER.SizeOfRawData.off, sectData.length);
66 section.putInt(IMAGE_SECTION_HEADER.PointerToLinenumbers.off, 0);
67 section.putChar(IMAGE_SECTION_HEADER.NumberOfLinenumbers.off, (char) 0);
69 section.putInt(IMAGE_SECTION_HEADER.Characteristics.off, sectFlags);
77 return section.getInt(IMAGE_SECTION_HEADER.SizeOfRawData.off);
98 section.putInt(IMAGE_SECTION_HEADER.PointerToRawData.off, (int) offset);
102 return (section.getInt(IMAGE_SECTION_HEADER.PointerToRawData.off));
[all...]

Completed in 316 milliseconds

1234567891011>>