Code example for MappedByteBuffer

Methods: get

0
buffer = access_file_channel.map(map_mode, position, map_size);
	} 
 
	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);
	}