Exemplo n.º 1
0
 private GameDownBuffer(GameDownBuffer buffer) {
   this.buffer = buffer.getChannelBuffer().duplicate();
 }
Exemplo n.º 2
0
 public static final GameDownBuffer allocat(int gameType, int capacity) {
   GameDownBuffer gb = new GameDownBuffer(GameBufferFactory.getBuffer(capacity + 2));
   gb.putShort((short) gameType);
   return gb;
 }