Пример #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());
        }