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

1234567891011>>

/openjdk7/jdk/src/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.
111 public synchronized int read(byte b[], int off, int len) { argument
114 } else if ((off < 0) || (off > b.length) || (len < 0) ||
115 ((off + len) > b.length) || ((off + len) < 0)) {
130 b[off++] = (byte)s.charAt(pos++);
H A DFilterWriter.java72 * @param off Offset from which to start reading characters
77 public void write(char cbuf[], int off, int len) throws IOException { argument
78 out.write(cbuf, off, len);
85 * @param off Offset from which to start reading characters
90 public void write(String str, int off, int len) throws IOException { argument
91 out.write(str, off, len);
H A DStringWriter.java84 * @param off Offset from which to start writing characters
87 public void write(char cbuf[], int off, int len) { argument
88 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
89 ((off + len) > cbuf.length) || ((off + len) < 0)) {
94 buf.append(cbuf, off, len);
108 * @param off Offset from which to start writing characters
111 public void write(String str, int off, int len) { argument
112 buf.append(str.substring(off, of
[all...]
H A DFilterOutputStream.java102 * <code>byte</code> array starting at offset <code>off</code> to
115 * @param off the start offset in the data.
120 public void write(byte b[], int off, int len) throws IOException { argument
121 if ((off | len | (b.length - (len + off)) | (off + len)) < 0)
125 write(b[off + i]);
H A DLineNumberInputStream.java121 * @param off the start offset of the data.
129 public int read(byte b[], int off, int len) throws IOException { argument
132 } else if ((off < 0) || (off > b.length) || (len < 0) ||
133 ((off + len) > b.length) || ((off + len) < 0)) {
143 b[off] = (byte)c;
153 b[off + i] = (byte)c;
/openjdk7/jdk/src/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...]
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/
H A DZipInfo.java123 static void printCEN(byte[] cen, int off) { argument
125 print(" Signature : %#010x%n", CENSIG(cen, off));
126 if (CENSIG(cen, off) != CENSIG) {
131 CENVEM(cen, off), (CENVEM(cen, off) >> 8),
132 (CENVEM(cen, off) & 0xff) / 10,
133 (CENVEM(cen, off) & 0xff) % 10);
135 CENVER(cen, off), CENVER(cen, off) / 10, CENVER(cen, off)
180 printExtra(byte[] extra, int off, int len) argument
[all...]
/openjdk7/langtools/test/tools/javadoc/lib/
H A DTester.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:Tester.Line
336 Line(int off, Object o) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
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 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) {
74 System.arraycopy(padding, 0, in, off, len);
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 - ((int)lastByte & 0x0ff);
105 if (start < off) {
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) {
/openjdk7/jdk/src/share/classes/sun/nio/cs/
H A DArrayDecoder.java34 int decode(byte[] src, int off, int len, char[] dst); argument
H A DArrayEncoder.java34 int encode(char[] src, int off, int len, byte[] dst); argument
/openjdk7/jdk/src/share/classes/java/util/zip/
H A DCRC32.java58 public void update(byte[] b, int off, int len) { argument
62 if (off < 0 || len < 0 || off > b.length - len) {
65 crc = updateBytes(crc, b, off, len);
92 private native static int updateBytes(int crc, byte[] b, int off, int len); argument
H A DInflater.java78 private int off, len; field in class:Inflater
118 * @param off the start offset of the input data
122 public void setInput(byte[] b, int off, int len) { argument
126 if (off < 0 || len < 0 || off > b.length - len) {
131 this.off = off;
153 * @param off the start offset of the data
158 public void setDictionary(byte[] b, int off, int len) { argument
162 if (off <
247 inflate(byte[] b, int off, int len) argument
400 setDictionary(long addr, byte[] b, int off, int len) argument
402 inflateBytes(long addr, byte[] b, int off, int len) argument
[all...]
H A DChecksum.java45 * @param off the start offset of the data
48 public void update(byte[] b, int off, int len); argument
H A DDeflater.java78 private int off, len; field in class:Deflater
195 * @param off the start offset of the data
199 public void setInput(byte[] b, int off, int len) { argument
203 if (off < 0 || len < 0 || off > b.length - len) {
208 this.off = off;
230 * @param off the start offset of the data
235 public void setDictionary(byte[] b, int off, int len) { argument
239 if (off <
351 deflate(byte[] b, int off, int len) argument
418 deflate(byte[] b, int off, int len, int flush) argument
550 setDictionary(long addr, byte[] b, int off, int len) argument
551 deflateBytes(long addr, byte[] b, int off, int len, int flush) argument
[all...]
/openjdk7/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;
H A DABCInputStream.java67 public int read(byte buf[], int off, int len) { argument
69 for (int i = off; i < off + n; i++) {
72 if (i > off)
73 return i - off;
/openjdk7/jdk/src/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
/openjdk7/jaxp/src/com/sun/org/apache/regexp/internal/
H A DCharacterArrayCharacterIterator.java33 private final int off; field in class:CharacterArrayCharacterIterator
38 public CharacterArrayCharacterIterator(char[] src, int off, int len) argument
41 this.off = off;
56 return new String(src, off + beginIndex, endIndex - beginIndex);
68 return src[off + pos];
/openjdk7/jdk/src/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;
/openjdk7/hotspot/src/share/vm/utilities/
H A Dcopy.cpp69 for (uintptr_t off = 0; off < size; off += sizeof(jlong)) {
70 *(jlong*)(dst + off) = fill;
79 for (uintptr_t off = 0; off < size; off += sizeof(jint)) {
80 *(jint*)(dst + off) = fill;
86 for (uintptr_t off = 0; off < siz
[all...]

Completed in 87 milliseconds

1234567891011>>