Code example for MappedByteBuffer

Methods: get, position

0
	public byte readImpl(int position) {
	    return buffer.get(position);
	} 
 
	public void readImpl(int position, byte[] b, int off, int len) {
	    buffer.position(position);
	    buffer.get(b, off, len);
	} 
 
	public void writeImpl(int position, byte b) {
	    buffer.put(position, b);
	} 
 
	public void writeImpl(int position, byte[] b, int off, int len) {
	    buffer.position(position);
	    buffer.put(b, off, len);
	} 
 
	public void flushImpl(int p1, int p2) throws IOException {
	    buffer.force();
	}