write an xdr message to a tcp channelbuffer concode_field_sep ByteBuffer buf concode_elem_sep int SIZEOF_INT concode_elem_sep int DEFAULT_INITIAL_CAPACITY concode_elem_sep int SIZEOF_LONG concode_elem_sep State state concode_elem_sep byte[] PADDING_BYTES concode_field_sep XDR asReadOnlyWrap concode_elem_sep int fragmentSize concode_elem_sep void alignPosition concode_elem_sep byte[] getBytes concode_elem_sep void writeFixedOpaque concode_elem_sep void writeFixedOpaque concode_elem_sep void writeLongAsHyper concode_elem_sep int pad concode_elem_sep long readHyper concode_elem_sep byte[] readFixedOpaque concode_elem_sep ByteBuffer buffer concode_elem_sep int readInt concode_elem_sep void writeInt concode_elem_sep boolean verifyLength concode_elem_sep boolean isLastFragment concode_elem_sep String readString concode_elem_sep void writeVariableOpaque concode_elem_sep void ensureFreeSpace concode_elem_sep int size concode_elem_sep byte[] readVariableOpaque concode_elem_sep byte[] recordMark concode_elem_sep boolean readBoolean concode_elem_sep void writeString concode_elem_sep ChannelBuffer writeMessageUdp concode_elem_sep void writeBoolean concode_elem_sep void writePadding concode_elem_sep int alignUp
ChannelBuffer function ( XDR arg0 , boolean arg1 ) { Preconditions . checkState ( arg0 . state == XDR . State . WRITING ) ; ByteBuffer loc0 = arg0 . buf . duplicate ( ) ; loc0 . flip ( ) ; byte [ ] loc1 = XDR . recordMark ( loc0 . limit ( ) , arg1 ) ; ByteBuffer loc2 = ByteBuffer . wrap ( loc1 ) ; return ChannelBuffers . copiedBuffer ( loc2 , loc0 ) ; }