throw new IllegalStateException("write bytes not be filled full! type = " + buffer.getChannelBuffer().getShort(2));
}
ProtocolCoder coder = GameBoss.getInstance().getProtocolCoder();
if (coder != null) {
coder.encode(buffer.getChannelBuffer().array(), GameBoss.getInstance().getWriteHeaderSize());
}
channel.write(buffer.getChannelBuffer());
}
@Override