Пример #1
0
 public static Offset <FfiResponses.BytesPackage> CreateBytesPackage(FlatBufferBuilder builder,
                                                                     FfiResponses.ResponseKind kind = FfiResponses.ResponseKind.GameStarted,
                                                                     uint ordering             = 0,
                                                                     VectorOffset bufferOffset = default(VectorOffset))
 {
     builder.StartTable(3);
     BytesPackage.AddBuffer(builder, bufferOffset);
     BytesPackage.AddOrdering(builder, ordering);
     BytesPackage.AddKind(builder, kind);
     return(BytesPackage.EndBytesPackage(builder));
 }
Пример #2
0
 public static BytesPackage GetRootAsBytesPackage(ByteBuffer _bb, BytesPackage obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }