Пример #1
0
 public static Offset <ForfeitMatch> CreateForfeitMatch(FlatBufferBuilder builder,
                                                        short opcode = 3)
 {
     builder.StartTable(1);
     ForfeitMatch.AddOpcode(builder, opcode);
     return(ForfeitMatch.EndForfeitMatch(builder));
 }
Пример #2
0
        public static byte[] MakeForfeitBuffer()
        {
            var builder = new MessageBuilder();

            ForfeitMatch.StartForfeitMatch(builder);

            ForfeitMatch.AddOpcode(builder, new ForfeitMatch().Opcode);

            var offset = ForfeitMatch.EndForfeitMatch(builder);

            builder.Finish(offset.Value);

            return(builder.SizedByteArray());
        }
Пример #3
0
 public static ForfeitMatch GetRootAsForfeitMatch(ByteBuffer _bb, ForfeitMatch obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }