示例#1
0
 public static Offset <SecretProofTransactionBuffer> CreateSecretProofTransactionBuffer(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),
                                                                                        byte hashAlgorithm           = 0,
                                                                                        VectorOffset secretOffset    = default(VectorOffset),
                                                                                        VectorOffset recipientOffset = default(VectorOffset),
                                                                                        ushort proofSize             = 0,
                                                                                        VectorOffset proofOffset     = default(VectorOffset))
 {
     builder.StartObject(12);
     SecretProofTransactionBuffer.AddProof(builder, proofOffset);
     SecretProofTransactionBuffer.AddRecipient(builder, recipientOffset);
     SecretProofTransactionBuffer.AddSecret(builder, secretOffset);
     SecretProofTransactionBuffer.AddDeadline(builder, deadlineOffset);
     SecretProofTransactionBuffer.AddMaxFee(builder, maxFeeOffset);
     SecretProofTransactionBuffer.AddVersion(builder, version);
     SecretProofTransactionBuffer.AddSigner(builder, signerOffset);
     SecretProofTransactionBuffer.AddSignature(builder, signatureOffset);
     SecretProofTransactionBuffer.AddSize(builder, size);
     SecretProofTransactionBuffer.AddProofSize(builder, proofSize);
     SecretProofTransactionBuffer.AddType(builder, type);
     SecretProofTransactionBuffer.AddHashAlgorithm(builder, hashAlgorithm);
     return(SecretProofTransactionBuffer.EndSecretProofTransactionBuffer(builder));
 }
示例#2
0
 public static SecretProofTransactionBuffer GetRootAsSecretProofTransactionBuffer(ByteBuffer _bb, SecretProofTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }