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)); }
public static MosaicBuffer GetRootAsMosaicBuffer(ByteBuffer _bb, MosaicBuffer obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }