internal static Offset <SupplyChangeBuffer> CreateSupplyChangeBuffer(FlatBufferBuilder builder, int transactionType = 0, short version = 0, short network = 0, int timestamp = 0, int publicKeyLen = 0, VectorOffset publicKeyOffset = default(VectorOffset), ulong fee = 0, int deadline = 0, int lengthOfMosaicIdStructure = 0, int lengthOfNamespaceIdString = 0, VectorOffset namespaceIdstringOffset = default(VectorOffset), int lengthOfMosaicNameString = 0, VectorOffset mosaicNameStringOffset = default(VectorOffset), int supplyType = 0, ulong delta = 0) { builder.StartObject(15); SupplyChangeBuffer.AddDelta(builder, delta); SupplyChangeBuffer.AddFee(builder, fee); SupplyChangeBuffer.AddSupplyType(builder, supplyType); SupplyChangeBuffer.AddMosaicNameString(builder, mosaicNameStringOffset); SupplyChangeBuffer.AddLengthOfMosaicNameString(builder, lengthOfMosaicNameString); SupplyChangeBuffer.AddNamespaceIdstring(builder, namespaceIdstringOffset); SupplyChangeBuffer.AddLengthOfNamespaceIdString(builder, lengthOfNamespaceIdString); SupplyChangeBuffer.AddLengthOfMosaicIdStructure(builder, lengthOfMosaicIdStructure); SupplyChangeBuffer.AddDeadline(builder, deadline); SupplyChangeBuffer.AddPublicKey(builder, publicKeyOffset); SupplyChangeBuffer.AddPublicKeyLen(builder, publicKeyLen); SupplyChangeBuffer.AddTimestamp(builder, timestamp); SupplyChangeBuffer.AddTransactionType(builder, transactionType); SupplyChangeBuffer.AddNetwork(builder, network); SupplyChangeBuffer.AddVersion(builder, version); return(SupplyChangeBuffer.EndSupplyChangeBuffer(builder)); }
internal static SupplyChangeBuffer GetRootAsSupplyChangeBuffer(ByteBuffer _bb, SupplyChangeBuffer obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }