Searched defs:buffer (Results 1 - 25 of 144) sorted by relevance

123456

/dalvik/libcore/nio/src/main/java/java/nio/channels/
H A DReadableByteChannel.java34 * Reads bytes from the channel into the given buffer.
38 * buffer when the method is invoked. The bytes will be read into the buffer
39 * starting at the buffer's current
45 * Upon completion, the buffer's {@code position} is updated to the end of
46 * the bytes that were read. The buffer's
49 * @param buffer
50 * the byte buffer to receive the bytes.
65 public int read(ByteBuffer buffer) throws IOException; argument
H A DWritableByteChannel.java34 * Writes bytes from the given buffer to the channel.
37 * <code>remaining()</code> number of bytes in the buffer when the method
38 * invoked. The bytes will be written from the buffer starting at the
39 * buffer's <code>position</code>.
44 * Upon completion, the buffer's <code>position()</code> is updated to the
45 * end of the bytes that were written. The buffer's <code>limit()</code>
48 * @param buffer
49 * the byte buffer containing the bytes to be written.
63 public int write(ByteBuffer buffer) throws IOException; argument
/dalvik/libdex/
H A Dsha1.h10 unsigned char buffer[64]; member in struct:__anon27
/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DGZIPOutputStream.java49 * the underlying stream. Set the internal compression buffer to size
55 * the internal buffer size.
84 * Write up to nbytes of data from the given buffer, starting at offset off,
88 public void write(byte[] buffer, int off, int nbytes) throws IOException { argument
89 super.write(buffer, off, nbytes);
90 crc.update(buffer, off, nbytes);
/dalvik/libcore/luni/src/main/java/java/io/
H A DBufferedOutputStream.java29 * most (smaller) requests can be satisfied by accessing the buffer alone. The
30 * drawback is that some extra space is required to hold the buffer and that
31 * copying takes place when flushing that buffer, but this is usually outweighed
44 * The buffer containing the bytes to be written to the target stream.
55 * {@code out}. The buffer size is set to the default value of 8 KB.
74 "Default buffer size used in BufferedOutputStream " +
76 "better to be explicit if an 8k buffer is required.");
82 * {@code out}. The buffer size is set to {@code size}.
87 * the size of the buffer in bytes.
118 * Writes {@code count} bytes from the byte array {@code buffer} startin
143 write(byte[] buffer, int offset, int length) argument
[all...]
H A DFilterInputStream.java117 * {@code buffer}. Returns the number of bytes actually read or -1 if no
121 * @param buffer
129 public int read(byte[] buffer) throws IOException { argument
130 return read(buffer, 0, buffer.length);
135 * byte array {@code buffer} starting at {@code offset}. Returns the number
140 * @param buffer
143 * the initial position in {@code buffer} to store the bytes
146 * the maximum number of bytes to store in {@code buffer}.
153 public int read(byte[] buffer, in argument
[all...]
H A DFilterOutputStream.java92 * Writes the entire contents of the byte array {@code buffer} to this
93 * stream. This implementation writes the {@code buffer} to the target
96 * @param buffer
97 * the buffer to be written.
102 public void write(byte[] buffer) throws IOException { argument
106 write(buffer, 0, buffer.length);
110 * Writes {@code count} bytes from the byte array {@code buffer} starting at
113 * @param buffer
114 * the buffer t
127 write(byte[] buffer, int offset, int length) argument
[all...]
H A DFilterReader.java120 * in the byte array {@code buffer} starting at {@code offset}. Returns the
124 * @param buffer
127 * the initial position in {@code buffer} to store the characters
130 * the maximum number of characters to store in {@code buffer}.
137 public int read(char[] buffer, int offset, int count) throws IOException { argument
139 return in.read(buffer, offset, count);
H A DFilterWriter.java77 * Writes {@code count} characters from the char array {@code buffer}
80 * @param buffer
81 * the buffer to write.
83 * the index of the first character in {@code buffer} to write.
85 * the number of characters in {@code buffer} to write.
90 public void write(char[] buffer, int offset, int count) throws IOException { argument
95 out.write(buffer, offset, count);
H A DObjectInput.java58 * Reads bytes from this stream into the byte array {@code buffer}. Blocks
61 * @param buffer
68 public int read(byte[] buffer) throws IOException; argument
72 * byte array {@code buffer} starting at offset {@code count}. Blocks while
75 * @param buffer
78 * the initial position in {@code buffer} to store the bytes read
81 * the maximum number of bytes to store in {@code buffer}.
87 public int read(byte[] buffer, int offset, int count) throws IOException; argument
H A DObjectOutput.java46 * Writes the entire contents of the byte array {@code buffer} to the output
49 * @param buffer
50 * the buffer to write.
54 public void write(byte[] buffer) throws IOException; argument
57 * Writes {@code count} bytes from the byte array {@code buffer} starting at
61 * @param buffer
62 * the buffer to write.
64 * the index of the first byte in {@code buffer} to write.
66 * the number of bytes from {@code buffer} to write to the target
71 public void write(byte[] buffer, in argument
[all...]
H A DOutputStream.java70 * Writes the entire contents of the byte array {@code buffer} to this
73 * @param buffer
74 * the buffer to be written.
78 public void write(byte[] buffer) throws IOException { argument
82 write(buffer, 0, buffer.length);
86 * Writes {@code count} bytes from the byte array {@code buffer} starting at
89 * @param buffer
90 * the buffer to be written.
92 * the start position in {@code buffer} fro
103 write(byte[] buffer, int offset, int count) argument
[all...]
H A DPipedOutputStream.java128 * Writes {@code count} bytes from the byte array {@code buffer} starting at
136 * @param buffer
137 * the buffer to write.
139 * the index of the first byte in {@code buffer} to write.
141 * the number of bytes from {@code buffer} to write to this
145 * offset + count} is bigger than the length of {@code buffer}.
156 public void write(byte[] buffer, int offset, int count) throws IOException { argument
157 super.write(buffer, offset, count);
H A DPipedWriter.java133 * Writes {@code count} characters from the character array {@code buffer}
141 * @param buffer
142 * the buffer to write.
144 * the index of the first character in {@code buffer} to write.
146 * the number of characters from {@code buffer} to write to this
150 * offset + count} is bigger than the length of {@code buffer}.
161 * if {@code buffer} is {@code null}.
164 public void write(char[] buffer, int offset, int count) throws IOException { argument
170 reader.receive(buffer, offset, count);
H A DSequenceInputStream.java153 * stores them in the byte array {@code buffer} starting at {@code offset}.
168 * @param buffer
171 * the initial position in {@code buffer} to store the bytes read
174 * the maximum number of bytes to store in {@code buffer}.
180 * offset + count} is greater than the size of {@code buffer}.
184 * if {@code buffer} is {@code null}.
187 public int read(byte[] buffer, int offset, int count) throws IOException { argument
192 if (buffer == null) {
200 if ((offset | count) < 0 || offset > buffer.length - count) {
205 int result = in.read(buffer, offse
[all...]
H A DStringBufferInputStream.java33 protected String buffer; field in class:StringBufferInputStream
59 buffer = str;
78 return pos < count ? buffer.charAt(pos++) & 0xFF : -1;
112 // K0047=buffer is null
131 b[offset + i] = (byte) buffer.charAt(pos + i);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/
H A DSocketInputStream.java60 byte[] buffer = new byte[1];
61 int result = socket.read(buffer, 0, 1);
62 return (-1 == result) ? result : buffer[0] & 0xFF;
66 public int read(byte[] buffer) throws IOException { argument
67 return read(buffer, 0, buffer.length);
71 public int read(byte[] buffer, int offset, int count) throws IOException { argument
72 if (null == buffer) {
80 if (0 > offset || offset >= buffer.length) {
84 if (0 > count || offset + count > buffer
[all...]
H A DSocketOutputStream.java49 public void write(byte[] buffer) throws IOException { argument
50 socket.write(buffer, 0, buffer.length);
54 public void write(byte[] buffer, int offset, int count) throws IOException { argument
56 if (buffer != null) {
57 if (0 <= offset && offset <= buffer.length && 0 <= count
58 && count <= buffer.length - offset) {
59 socket.write(buffer, offset, count);
70 byte[] buffer = new byte[1];
71 buffer[
[all...]
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/
H A DAlternativeName.java88 public void dumpValue(StringBuffer buffer, String prefix) { argument
89 buffer.append(prefix).append((which) ? "Subject" : "Issuer") //$NON-NLS-1$ //$NON-NLS-2$
91 alternativeNames.dumpValue(buffer, prefix + " "); //$NON-NLS-1$
92 buffer.append(prefix).append("]\n"); //$NON-NLS-1$
H A DAuthorityKeyIdentifier.java88 public void dumpValue(StringBuffer buffer, String prefix) { argument
89 buffer.append(prefix).append("AuthorityKeyIdentifier [\n"); //$NON-NLS-1$
91 buffer.append(prefix).append(" keyIdentifier:\n"); //$NON-NLS-1$
92 buffer.append(Array.toString(keyIdentifier, prefix + " ")); //$NON-NLS-1$
95 buffer.append(prefix).append(" authorityCertIssuer: [\n"); //$NON-NLS-1$
96 authorityCertIssuer.dumpValue(buffer, prefix + " "); //$NON-NLS-1$
97 buffer.append(prefix).append(" ]\n"); //$NON-NLS-1$
100 buffer.append(prefix).append(" authorityCertSerialNumber: ") //$NON-NLS-1$
103 buffer.append(prefix).append("]\n"); //$NON-NLS-1$
H A DBasicConstraints.java97 public void dumpValue(StringBuffer buffer, String prefix) { argument
98 buffer.append(prefix).append("BasicConstraints [\n").append(prefix) //$NON-NLS-1$
H A DCRLDistributionPoints.java109 public void dumpValue(StringBuffer buffer, String prefix) { argument
110 buffer.append(prefix).append("CRL Distribution Points: [\n"); //$NON-NLS-1$
114 buffer.append(prefix).append(" [").append(++number).append("]\n"); //$NON-NLS-1$ //$NON-NLS-2$
115 ((DistributionPoint) it.next()).dumpValue(buffer, prefix + " "); //$NON-NLS-1$
117 buffer.append(prefix).append("]\n"); //$NON-NLS-1$
H A DCRLNumber.java79 public void dumpValue(StringBuffer buffer, String prefix) { argument
80 buffer.append(prefix).append("CRL Number: [ ").append(number).append( //$NON-NLS-1$
H A DCertificateIssuer.java73 public void dumpValue(StringBuffer buffer, String prefix) { argument
74 buffer.append(prefix).append("Certificate Issuer: "); //$NON-NLS-1$
80 buffer.append("Unparseable (incorrect!) extension value:\n"); //$NON-NLS-1$
81 super.dumpValue(buffer);
84 buffer.append(issuer).append('\n');
H A DDistributionPoint.java97 public void dumpValue(StringBuffer buffer, String prefix) { argument
98 buffer.append(prefix);
99 buffer.append("Distribution Point: [\n"); //$NON-NLS-1$
101 distributionPoint.dumpValue(buffer, prefix + " "); //$NON-NLS-1$
104 reasons.dumpValue(buffer, prefix + " "); //$NON-NLS-1$
107 buffer.append(prefix);
108 buffer.append(" CRL Issuer: [\n"); //$NON-NLS-1$
109 cRLIssuer.dumpValue(buffer, prefix + " "); //$NON-NLS-1$
110 buffer.append(prefix);
111 buffer
[all...]

Completed in 252 milliseconds

123456