internal static Offset <ImportanceTransferBuffer> CreateImportanceTransferBuffer(FlatBufferBuilder builder, int transactionType = 0, short version = 0, short network = 0, int timestamp = 0, int publicKeyLen = 0, VectorOffset publicKeyOffset = default(VectorOffset), ulong fee = 0, int deadline = 0, int mode = 0, int remotePublicKeyLen = 0, VectorOffset remotePublicKeyOffset = default(VectorOffset)) { builder.StartObject(11); ImportanceTransferBuffer.AddFee(builder, fee); ImportanceTransferBuffer.AddRemotePublicKey(builder, remotePublicKeyOffset); ImportanceTransferBuffer.AddRemotePublicKeyLen(builder, remotePublicKeyLen); ImportanceTransferBuffer.AddMode(builder, mode); ImportanceTransferBuffer.AddDeadline(builder, deadline); ImportanceTransferBuffer.AddPublicKey(builder, publicKeyOffset); ImportanceTransferBuffer.AddPublicKeyLen(builder, publicKeyLen); ImportanceTransferBuffer.AddTimestamp(builder, timestamp); ImportanceTransferBuffer.AddTransactionType(builder, transactionType); ImportanceTransferBuffer.AddNetwork(builder, network); ImportanceTransferBuffer.AddVersion(builder, version); return(ImportanceTransferBuffer.EndImportanceTransferBuffer(builder)); }
internal static ImportanceTransferBuffer GetRootAsImportanceTransferBuffer(ByteBuffer _bb, ImportanceTransferBuffer obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }