コード例 #1
0
 private GameDownBuffer(GameDownBuffer buffer) {
   this.buffer = buffer.getChannelBuffer().duplicate();
 }
コード例 #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;
 }