当前位置: 首页>>代码示例>>C#>>正文


C# FlatBufferBuilder.AddOffset方法代码示例

本文整理汇总了C#中FlatBuffers.FlatBufferBuilder.AddOffset方法的典型用法代码示例。如果您正苦于以下问题:C# FlatBufferBuilder.AddOffset方法的具体用法?C# FlatBufferBuilder.AddOffset怎么用?C# FlatBufferBuilder.AddOffset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FlatBuffers.FlatBufferBuilder的用法示例。


在下文中一共展示了FlatBufferBuilder.AddOffset方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddEndereco

 public static void AddEndereco(FlatBufferBuilder builder, StringOffset enderecoOffset)
 {
     builder.AddOffset(1, enderecoOffset.Value, 0);
 }
开发者ID:talkitbr,项目名称:FlatBuffers,代码行数:4,代码来源:Imobiliaria.cs

示例2: CreateTechnologiesVector

 public static VectorOffset CreateTechnologiesVector(FlatBufferBuilder builder, StringOffset[] data)
 {
     builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector();
 }
开发者ID:Reimerei,项目名称:port_experiments,代码行数:4,代码来源:GameData.cs

示例3: AddBuildings

 public static void AddBuildings(FlatBufferBuilder builder, VectorOffset buildingsOffset)
 {
     builder.AddOffset(15, buildingsOffset.Value, 0);
 }
开发者ID:Reimerei,项目名称:port_experiments,代码行数:4,代码来源:GameData.cs

示例4: AddUnitLevels

 public static void AddUnitLevels(FlatBufferBuilder builder, VectorOffset unitLevelsOffset)
 {
     builder.AddOffset(1, unitLevelsOffset.Value, 0);
 }
开发者ID:Reimerei,项目名称:port_experiments,代码行数:4,代码来源:GameData.cs

示例5: CreateCurrentQuestsVector

 public static VectorOffset CreateCurrentQuestsVector(FlatBufferBuilder builder, Offset<CurrentQuest>[] data)
 {
     builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector();
 }
开发者ID:Reimerei,项目名称:port_experiments,代码行数:4,代码来源:GameData.cs

示例6: AddPlayerResources

 public static void AddPlayerResources(FlatBufferBuilder builder, VectorOffset playerResourcesOffset)
 {
     builder.AddOffset(8, playerResourcesOffset.Value, 0);
 }
开发者ID:Reimerei,项目名称:port_experiments,代码行数:4,代码来源:GameData.cs

示例7: AddShips

 public static void AddShips(FlatBufferBuilder builder, VectorOffset shipsOffset)
 {
     builder.AddOffset(4, shipsOffset.Value, 0);
 }
开发者ID:Reimerei,项目名称:port_experiments,代码行数:4,代码来源:GameData.cs

示例8: AddType

 public static void AddType(FlatBufferBuilder builder, StringOffset typeOffset)
 {
     builder.AddOffset(0, typeOffset.Value, 0);
 }
开发者ID:Reimerei,项目名称:port_experiments,代码行数:4,代码来源:TypeAmount.cs

示例9: AddEntry

 public static void AddEntry(FlatBufferBuilder builder, int entryOffset)
 {
     builder.AddOffset(0, entryOffset, 0);
 }
开发者ID:SaviorXTanren,项目名称:xenia,代码行数:4,代码来源:ListModulesResponse.cs

示例10: AddMeshes

 public static void AddMeshes(FlatBufferBuilder builder, VectorOffset meshesOffset)
 {
     builder.AddOffset(0, meshesOffset.Value, 0);
 }
开发者ID:kestrelm,项目名称:CreatureTools,代码行数:4,代码来源:animationMeshTimeSample.cs

示例11: CreateMeshesVector

 public static VectorOffset CreateMeshesVector(FlatBufferBuilder builder, Offset<animationMesh>[] data)
 {
     builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector();
 }
开发者ID:kestrelm,项目名称:CreatureTools,代码行数:4,代码来源:animationMeshTimeSample.cs

示例12: AddVariables

 public static void AddVariables(FlatBufferBuilder builder, VectorOffset variablesOffset)
 {
     builder.AddOffset(2, variablesOffset.Value, 0);
 }
开发者ID:wuyuntao,项目名称:Synchronica,代码行数:4,代码来源:ActorData.cs

示例13: AddEvents

 public static void AddEvents(FlatBufferBuilder builder, VectorOffset eventsOffset)
 {
     builder.AddOffset(1, eventsOffset.Value, 0);
 }
开发者ID:wuyuntao,项目名称:Synchronica,代码行数:4,代码来源:ActorData.cs

示例14: AddTelefone

 public static void AddTelefone(FlatBufferBuilder builder, StringOffset telefoneOffset)
 {
     builder.AddOffset(6, telefoneOffset.Value, 0);
 }
开发者ID:talkitbr,项目名称:FlatBuffers,代码行数:4,代码来源:Imobiliaria.cs

示例15: AddLeftOverResources

 public static void AddLeftOverResources(FlatBufferBuilder builder, VectorOffset leftOverResourcesOffset)
 {
     builder.AddOffset(11, leftOverResourcesOffset.Value, 0);
 }
开发者ID:Reimerei,项目名称:port_experiments,代码行数:4,代码来源:GameData.cs


注:本文中的FlatBuffers.FlatBufferBuilder.AddOffset方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。