예제 #1
0
 /**
  * Read a byte array from the memory pool
  *
  * @param offset The offset to read from
  * @param data A byte array to read into
  * @param size The number of bytes to read
  */
 public void read(int offset, byte[] data, int size) {
   pool.read(data, offset, size);
 }
예제 #2
0
 /**
  * Write the bytes from a byte array to an offset in the Memory Pool
  *
  * @param offset An offset into the pool
  * @param data The byte array to pull from
  * @param size The number of bytes to write
  */
 public void write(int offset, byte[] data, int size) {
   pool.write(data, offset, size);
 }
예제 #3
0
 /**
  * Read a single byte from the Memory Pool
  *
  * @param offset The byte to read from
  * @return The byte at that location in the Memory Pool
  */
 public byte read(int offset) {
   return pool.read(offset);
 }
예제 #4
0
 /**
  * Write a byte to an offset in the Memory Pool
  *
  * @param offset An offset into the pool
  * @param data The byte to write
  */
 public void write(int offset, byte data) {
   pool.write(data, offset);
 }