コード例 #1
0
 public 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));
 }
コード例 #2
0
 public static MosaicBuffer GetRootAsMosaicBuffer(ByteBuffer _bb, MosaicBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }