Created
September 6, 2013 07:35
-
-
Save daschl/6460684 to your computer and use it in GitHub Desktop.
encoding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void encodeHeader(ByteBuf buf, BinaryMemcacheRequestHeader header) { | |
buf.writeByte(header.getMagic()); | |
buf.writeByte(header.getOpcode()); | |
buf.writeShort(header.getKeyLength()); | |
buf.writeByte(header.getExtrasLength()); | |
buf.writeByte(header.getDataType()); | |
buf.writeShort(header.getReserved()); | |
buf.writeInt(header.getTotalBodyLength()); | |
buf.writeInt(header.getOpaque()); | |
buf.writeLong(header.getCAS()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment