示例#1
0
        public static byte[] pack(IPackable packableEx)
        {
            ByteBuf buffer = new ByteBuf();

            packableEx.marshal(buffer);
            return(buffer.asBytes());
        }
示例#2
0
        public static byte[] pack(PrivilegeMessage packableEx)
        {
            ByteBuf buffer = new ByteBuf();

            packableEx.marshal(buffer);
            return(buffer.asBytes());
        }