private void putBytes(int address, ByteBuffer buffer) throws IOException {
      lockBuffer();
      try {
        bufferWrapper.position(address + addressInBuffer);
        bufferWrapper.put(buffer);
      }
      finally {
        unlockBuffer();
      }
    }
private void putBytes(int address, ByteBuffer buffer)