Esempio n. 1
0
        public static byte[] pack(IPackable packableEx)
        {
            ByteBuf buffer = new ByteBuf();

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

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