예제 #1
0
 public static Offset <MultisigModificationTransactionBuffer> CreateMultisigModificationTransactionBuffer(FlatBufferBuilder builder,
                                                                                                          uint size = 0,
                                                                                                          VectorOffset signatureOffset = default(VectorOffset),
                                                                                                          VectorOffset signerOffset    = default(VectorOffset),
                                                                                                          ushort version                   = 0,
                                                                                                          ushort type                      = 0,
                                                                                                          VectorOffset feeOffset           = default(VectorOffset),
                                                                                                          VectorOffset deadlineOffset      = default(VectorOffset),
                                                                                                          byte minRemovalDelta             = 0,
                                                                                                          byte minApprovalDelta            = 0,
                                                                                                          byte numModifications            = 0,
                                                                                                          VectorOffset modificationsOffset = default(VectorOffset))
 {
     builder.StartObject(11);
     MultisigModificationTransactionBuffer.AddModifications(builder, modificationsOffset);
     MultisigModificationTransactionBuffer.AddDeadline(builder, deadlineOffset);
     MultisigModificationTransactionBuffer.AddFee(builder, feeOffset);
     MultisigModificationTransactionBuffer.AddSigner(builder, signerOffset);
     MultisigModificationTransactionBuffer.AddSignature(builder, signatureOffset);
     MultisigModificationTransactionBuffer.AddSize(builder, size);
     MultisigModificationTransactionBuffer.AddType(builder, type);
     MultisigModificationTransactionBuffer.AddVersion(builder, version);
     MultisigModificationTransactionBuffer.AddNumModifications(builder, numModifications);
     MultisigModificationTransactionBuffer.AddMinApprovalDelta(builder, minApprovalDelta);
     MultisigModificationTransactionBuffer.AddMinRemovalDelta(builder, minRemovalDelta);
     return(MultisigModificationTransactionBuffer.EndMultisigModificationTransactionBuffer(builder));
 }
예제 #2
0
 public static MultisigModificationTransactionBuffer GetRootAsMultisigModificationTransactionBuffer(ByteBuffer _bb, MultisigModificationTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }