Lines Matching defs:buffer
61 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check
63 // exactly the remaining bytes in the buffer. The search is bounded because the maximum
104 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check
106 // exactly the remaining bytes in the buffer. The search is bounded because the maximum
128 // No EoCD record found in the buffer
140 * buffer or {@code -1} if the record is not present.
152 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check
154 // exactly the remaining bytes in the buffer. The search is bounded because the maximum
242 private static void assertByteOrderLittleEndian(ByteBuffer buffer) {
243 if (buffer.order() != ByteOrder.LITTLE_ENDIAN) {
248 private static int getUnsignedInt16(ByteBuffer buffer, int offset) {
249 return buffer.getShort(offset) & 0xffff;
252 private static long getUnsignedInt32(ByteBuffer buffer, int offset) {
253 return buffer.getInt(offset) & 0xffffffffL;
256 private static void setUnsignedInt32(ByteBuffer buffer, int offset, long value) {
260 buffer.putInt(buffer.position() + offset, (int) value);