Ejemplo n.º 1
0
 Pooled<ByteBuffer> allocate(byte protoId) {
   Pooled<ByteBuffer> pooled = channel.allocate(protoId);
   ByteBuffer buffer = pooled.getResource();
   buffer.putShort(messageId);
   return pooled;
 }