Beispiel #1
0
 public static Offset <MetadataAccountTransactionBuffer> CreateMetadataAccountTransactionBuffer(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),
                                                                                                VectorOffset targetKeyOffset         = default(VectorOffset),
                                                                                                VectorOffset scopedMetadataKeyOffset = default(VectorOffset),
                                                                                                short valueSizeDelta     = 0,
                                                                                                ushort valueSize         = 0,
                                                                                                VectorOffset valueOffset = default(VectorOffset))
 {
     builder.StartObject(12);
     MetadataAccountTransactionBuffer.AddValue(builder, valueOffset);
     MetadataAccountTransactionBuffer.AddScopedMetadataKey(builder, scopedMetadataKeyOffset);
     MetadataAccountTransactionBuffer.AddTargetKey(builder, targetKeyOffset);
     MetadataAccountTransactionBuffer.AddDeadline(builder, deadlineOffset);
     MetadataAccountTransactionBuffer.AddMaxFee(builder, maxFeeOffset);
     MetadataAccountTransactionBuffer.AddVersion(builder, version);
     MetadataAccountTransactionBuffer.AddSigner(builder, signerOffset);
     MetadataAccountTransactionBuffer.AddSignature(builder, signatureOffset);
     MetadataAccountTransactionBuffer.AddSize(builder, size);
     MetadataAccountTransactionBuffer.AddValueSize(builder, valueSize);
     MetadataAccountTransactionBuffer.AddValueSizeDelta(builder, valueSizeDelta);
     MetadataAccountTransactionBuffer.AddType(builder, type);
     return(MetadataAccountTransactionBuffer.EndMetadataAccountTransactionBuffer(builder));
 }
Beispiel #2
0
 public static MetadataAccountTransactionBuffer GetRootAsMetadataAccountTransactionBuffer(ByteBuffer _bb, MetadataAccountTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }