コード例 #1
0
 public static Offset <AliasTransactionBuffer> CreateAliasTransactionBuffer(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 actionType                = 0,
                                                                            VectorOffset namespaceIdOffset = default(VectorOffset),
                                                                            VectorOffset aliasIdOffset     = default(VectorOffset))
 {
     builder.StartObject(10);
     AliasTransactionBuffer.AddAliasId(builder, aliasIdOffset);
     AliasTransactionBuffer.AddNamespaceId(builder, namespaceIdOffset);
     AliasTransactionBuffer.AddDeadline(builder, deadlineOffset);
     AliasTransactionBuffer.AddMaxFee(builder, maxFeeOffset);
     AliasTransactionBuffer.AddVersion(builder, version);
     AliasTransactionBuffer.AddSigner(builder, signerOffset);
     AliasTransactionBuffer.AddSignature(builder, signatureOffset);
     AliasTransactionBuffer.AddSize(builder, size);
     AliasTransactionBuffer.AddType(builder, type);
     AliasTransactionBuffer.AddActionType(builder, actionType);
     return(AliasTransactionBuffer.EndAliasTransactionBuffer(builder));
 }
コード例 #2
0
 public static AliasTransactionBuffer GetRootAsAliasTransactionBuffer(ByteBuffer _bb, AliasTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }