Пример #1
0
 public static Offset <CatapultConfigTransactionBuffer> CreateCatapultConfigTransactionBuffer(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),
                                                                                              VectorOffset applyHeightDeltaOffset        = default(VectorOffset),
                                                                                              ushort blockChainConfigSize                = 0,
                                                                                              ushort supportedEntityVersionsSize         = 0,
                                                                                              VectorOffset blockChainConfigOffset        = default(VectorOffset),
                                                                                              VectorOffset supportedEntityVersionsOffset = default(VectorOffset))
 {
     builder.StartObject(12);
     CatapultConfigTransactionBuffer.AddSupportedEntityVersions(builder, supportedEntityVersionsOffset);
     CatapultConfigTransactionBuffer.AddBlockChainConfig(builder, blockChainConfigOffset);
     CatapultConfigTransactionBuffer.AddApplyHeightDelta(builder, applyHeightDeltaOffset);
     CatapultConfigTransactionBuffer.AddDeadline(builder, deadlineOffset);
     CatapultConfigTransactionBuffer.AddMaxFee(builder, maxFeeOffset);
     CatapultConfigTransactionBuffer.AddVersion(builder, version);
     CatapultConfigTransactionBuffer.AddSigner(builder, signerOffset);
     CatapultConfigTransactionBuffer.AddSignature(builder, signatureOffset);
     CatapultConfigTransactionBuffer.AddSize(builder, size);
     CatapultConfigTransactionBuffer.AddSupportedEntityVersionsSize(builder, supportedEntityVersionsSize);
     CatapultConfigTransactionBuffer.AddBlockChainConfigSize(builder, blockChainConfigSize);
     CatapultConfigTransactionBuffer.AddType(builder, type);
     return(CatapultConfigTransactionBuffer.EndCatapultConfigTransactionBuffer(builder));
 }
Пример #2
0
 public static CatapultConfigTransactionBuffer GetRootAsCatapultConfigTransactionBuffer(ByteBuffer _bb, CatapultConfigTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }