public static Offset <HashLockTransactionBuffer> CreateTestBuffer(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),
                                                                   VectorOffset IdOffset       = default(VectorOffset),
                                                                   VectorOffset AmountOffset   = default(VectorOffset),
                                                                   VectorOffset DurationOffset = default(VectorOffset),
                                                                   VectorOffset HashOffset     = default(VectorOffset))
 {
     builder.StartObject(11);
     HashLockTransactionBuffer.AddHash(builder, HashOffset);
     HashLockTransactionBuffer.AddDuration(builder, DurationOffset);
     HashLockTransactionBuffer.AddAmount(builder, AmountOffset);
     HashLockTransactionBuffer.AddId(builder, IdOffset);
     HashLockTransactionBuffer.AddDeadline(builder, deadlineOffset);
     HashLockTransactionBuffer.AddFee(builder, feeOffset);
     HashLockTransactionBuffer.AddSigner(builder, signerOffset);
     HashLockTransactionBuffer.AddSignature(builder, signatureOffset);
     HashLockTransactionBuffer.AddSize(builder, size);
     HashLockTransactionBuffer.AddType(builder, type);
     HashLockTransactionBuffer.AddVersion(builder, version);
     return(HashLockTransactionBuffer.EndTestBuffer(builder));
 }
 public static HashLockTransactionBuffer GetRootAsTestBuffer(ByteBuffer _bb, HashLockTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }