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