Example #1
0
 public static Offset <MosaicDefinitionTransactionBuffer> CreateMosaicDefinitionTransactionBuffer(FlatBufferBuilder builder,
                                                                                                  uint size = 0,
                                                                                                  VectorOffset signatureOffset = default(VectorOffset),
                                                                                                  VectorOffset signerOffset    = default(VectorOffset),
                                                                                                  uint version = 0,
                                                                                                  ushort type  = 0,
                                                                                                  VectorOffset maxFeeOffset   = default(VectorOffset),
                                                                                                  VectorOffset deadlineOffset = default(VectorOffset),
                                                                                                  uint mosaicNonce            = 0,
                                                                                                  VectorOffset mosaicIdOffset = default(VectorOffset),
                                                                                                  byte numOptionalProperties  = 0,
                                                                                                  byte flags        = 0,
                                                                                                  byte divisibility = 0,
                                                                                                  VectorOffset optionalPropertiesOffset = default(VectorOffset))
 {
     builder.StartObject(13);
     MosaicDefinitionTransactionBuffer.AddOptionalProperties(builder, optionalPropertiesOffset);
     MosaicDefinitionTransactionBuffer.AddMosaicId(builder, mosaicIdOffset);
     MosaicDefinitionTransactionBuffer.AddMosaicNonce(builder, mosaicNonce);
     MosaicDefinitionTransactionBuffer.AddDeadline(builder, deadlineOffset);
     MosaicDefinitionTransactionBuffer.AddMaxFee(builder, maxFeeOffset);
     MosaicDefinitionTransactionBuffer.AddVersion(builder, version);
     MosaicDefinitionTransactionBuffer.AddSigner(builder, signerOffset);
     MosaicDefinitionTransactionBuffer.AddSignature(builder, signatureOffset);
     MosaicDefinitionTransactionBuffer.AddSize(builder, size);
     MosaicDefinitionTransactionBuffer.AddType(builder, type);
     MosaicDefinitionTransactionBuffer.AddDivisibility(builder, divisibility);
     MosaicDefinitionTransactionBuffer.AddFlags(builder, flags);
     MosaicDefinitionTransactionBuffer.AddNumOptionalProperties(builder, numOptionalProperties);
     return(MosaicDefinitionTransactionBuffer.EndMosaicDefinitionTransactionBuffer(builder));
 }
Example #2
0
 public static MosaicDefinitionTransactionBuffer GetRootAsMosaicDefinitionTransactionBuffer(ByteBuffer _bb, MosaicDefinitionTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }