Lines Matching refs:buffer
114 public static int getUint8(ByteBuffer buffer, int position) {
115 return uint8(buffer.get(position));
118 public static int getUint16(ByteBuffer buffer, int position) {
119 return uint16(buffer.getShort(position));
122 public static long getUint32(ByteBuffer buffer, int position) {
123 return uint32(buffer.getInt(position));
126 public static void put(ByteBuffer buffer, int position, byte[] bytes) {
127 final int original = buffer.position();
128 buffer.position(position);
129 buffer.put(bytes);
130 buffer.position(original);