本文整理汇总了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);
}
示例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();
}
示例3: AddBuildings
public static void AddBuildings(FlatBufferBuilder builder, VectorOffset buildingsOffset)
{
builder.AddOffset(15, buildingsOffset.Value, 0);
}
示例4: AddUnitLevels
public static void AddUnitLevels(FlatBufferBuilder builder, VectorOffset unitLevelsOffset)
{
builder.AddOffset(1, unitLevelsOffset.Value, 0);
}
示例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();
}
示例6: AddPlayerResources
public static void AddPlayerResources(FlatBufferBuilder builder, VectorOffset playerResourcesOffset)
{
builder.AddOffset(8, playerResourcesOffset.Value, 0);
}
示例7: AddShips
public static void AddShips(FlatBufferBuilder builder, VectorOffset shipsOffset)
{
builder.AddOffset(4, shipsOffset.Value, 0);
}
示例8: AddType
public static void AddType(FlatBufferBuilder builder, StringOffset typeOffset)
{
builder.AddOffset(0, typeOffset.Value, 0);
}
示例9: AddEntry
public static void AddEntry(FlatBufferBuilder builder, int entryOffset)
{
builder.AddOffset(0, entryOffset, 0);
}
示例10: AddMeshes
public static void AddMeshes(FlatBufferBuilder builder, VectorOffset meshesOffset)
{
builder.AddOffset(0, meshesOffset.Value, 0);
}
示例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();
}
示例12: AddVariables
public static void AddVariables(FlatBufferBuilder builder, VectorOffset variablesOffset)
{
builder.AddOffset(2, variablesOffset.Value, 0);
}
示例13: AddEvents
public static void AddEvents(FlatBufferBuilder builder, VectorOffset eventsOffset)
{
builder.AddOffset(1, eventsOffset.Value, 0);
}
示例14: AddTelefone
public static void AddTelefone(FlatBufferBuilder builder, StringOffset telefoneOffset)
{
builder.AddOffset(6, telefoneOffset.Value, 0);
}
示例15: AddLeftOverResources
public static void AddLeftOverResources(FlatBufferBuilder builder, VectorOffset leftOverResourcesOffset)
{
builder.AddOffset(11, leftOverResourcesOffset.Value, 0);
}