Example #1
0
 internal static Offset <MosaicBuffer> CreateMosaicBuffer(FlatBufferBuilder builder,
                                                          VectorOffset idOffset     = default(VectorOffset),
                                                          VectorOffset amountOffset = default(VectorOffset))
 {
     builder.StartObject(2);
     MosaicBuffer.AddAmount(builder, amountOffset);
     MosaicBuffer.AddId(builder, idOffset);
     return(MosaicBuffer.EndMosaicBuffer(builder));
 }
Example #2
0
 internal static MosaicBuffer GetRootAsMosaicBuffer(ByteBuffer _bb, MosaicBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }