Ejemplo n.º 1
0
 public static Offset <ModifyContractTransactionBuffer> CreateModifyContractTransactionBuffer(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 durationDeltaOffset = default(VectorOffset),
                                                                                              VectorOffset hashOffset          = default(VectorOffset),
                                                                                              byte numCustomers            = 0,
                                                                                              byte numExecutors            = 0,
                                                                                              byte numVerifiers            = 0,
                                                                                              VectorOffset customersOffset = default(VectorOffset),
                                                                                              VectorOffset executorsOffset = default(VectorOffset),
                                                                                              VectorOffset verifiersOffset = default(VectorOffset))
 {
     builder.StartObject(15);
     ModifyContractTransactionBuffer.AddVerifiers(builder, verifiersOffset);
     ModifyContractTransactionBuffer.AddExecutors(builder, executorsOffset);
     ModifyContractTransactionBuffer.AddCustomers(builder, customersOffset);
     ModifyContractTransactionBuffer.AddHash(builder, hashOffset);
     ModifyContractTransactionBuffer.AddDurationDelta(builder, durationDeltaOffset);
     ModifyContractTransactionBuffer.AddDeadline(builder, deadlineOffset);
     ModifyContractTransactionBuffer.AddMaxFee(builder, maxFeeOffset);
     ModifyContractTransactionBuffer.AddVersion(builder, version);
     ModifyContractTransactionBuffer.AddSigner(builder, signerOffset);
     ModifyContractTransactionBuffer.AddSignature(builder, signatureOffset);
     ModifyContractTransactionBuffer.AddSize(builder, size);
     ModifyContractTransactionBuffer.AddType(builder, type);
     ModifyContractTransactionBuffer.AddNumVerifiers(builder, numVerifiers);
     ModifyContractTransactionBuffer.AddNumExecutors(builder, numExecutors);
     ModifyContractTransactionBuffer.AddNumCustomers(builder, numCustomers);
     return(ModifyContractTransactionBuffer.EndModifyContractTransactionBuffer(builder));
 }
Ejemplo n.º 2
0
 public static ModifyContractTransactionBuffer GetRootAsModifyContractTransactionBuffer(ByteBuffer _bb, ModifyContractTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }