本文整理汇总了C#中FlatBuffers.FlatBufferBuilder.StartObject方法的典型用法代码示例。如果您正苦于以下问题:C# FlatBufferBuilder.StartObject方法的具体用法?C# FlatBufferBuilder.StartObject怎么用?C# FlatBufferBuilder.StartObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FlatBuffers.FlatBufferBuilder
的用法示例。
在下文中一共展示了FlatBufferBuilder.StartObject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateListThreadsResponse
public static int CreateListThreadsResponse(FlatBufferBuilder builder,
int thread = 0)
{
builder.StartObject(1);
ListThreadsResponse.AddThread(builder, thread);
return ListThreadsResponse.EndListThreadsResponse(builder);
}
示例2: CreateGetModuleResponse
public static int CreateGetModuleResponse(FlatBufferBuilder builder,
int module = 0)
{
builder.StartObject(1);
GetModuleResponse.AddModule(builder, module);
return GetModuleResponse.EndGetModuleResponse(builder);
}
示例3: CreateGetModuleRequest
public static int CreateGetModuleRequest(FlatBufferBuilder builder,
uint module_id = 0)
{
builder.StartObject(1);
GetModuleRequest.AddModuleId(builder, module_id);
return GetModuleRequest.EndGetModuleRequest(builder);
}
示例4: CreateTableInNestedNS
public static Offset<TableInNestedNS> CreateTableInNestedNS(FlatBufferBuilder builder,
int foo = 0)
{
builder.StartObject(1);
TableInNestedNS.AddFoo(builder, foo);
return TableInNestedNS.EndTableInNestedNS(builder);
}
示例5: CreateInputCommand
public static Offset<InputCommand> CreateInputCommand(FlatBufferBuilder builder,
Offset<CommandFrame> frame = default(Offset<CommandFrame>))
{
builder.StartObject(1);
InputCommand.AddFrame(builder, frame);
return InputCommand.EndInputCommand(builder);
}
示例6: CreateLoginResponse
public static Offset<LoginResponse> CreateLoginResponse(FlatBufferBuilder builder,
int objectId = 0)
{
builder.StartObject(1);
LoginResponse.AddObjectId(builder, objectId);
return LoginResponse.EndLoginResponse(builder);
}
示例7: CreateSecondTableInA
public static Offset<SecondTableInA> CreateSecondTableInA(FlatBufferBuilder builder,
Offset<NamespaceC.TableInC> refer_to_cOffset = default(Offset<NamespaceC.TableInC>))
{
builder.StartObject(1);
SecondTableInA.AddReferToC(builder, refer_to_cOffset);
return SecondTableInA.EndSecondTableInA(builder);
}
示例8: CreateGetFunctionResponse
public static int CreateGetFunctionResponse(FlatBufferBuilder builder,
int function = 0)
{
builder.StartObject(1);
GetFunctionResponse.AddFunction(builder, function);
return GetFunctionResponse.EndGetFunctionResponse(builder);
}
示例9: CreateVariableParameters
public static Offset<VariableParameters> CreateVariableParameters(FlatBufferBuilder builder,
VariableType type = (VariableType)0)
{
builder.StartObject(1);
VariableParameters.AddType(builder, type);
return VariableParameters.EndVariableParameters(builder);
}
示例10: CreateAddBreakpointsRequest
public static int CreateAddBreakpointsRequest(FlatBufferBuilder builder,
int breakpoints = 0)
{
builder.StartObject(1);
AddBreakpointsRequest.AddBreakpoints(builder, breakpoints);
return AddBreakpointsRequest.EndAddBreakpointsRequest(builder);
}
示例11: CreateLoginRequest
public static Offset<LoginRequest> CreateLoginRequest(FlatBufferBuilder builder,
StringOffset name = default(StringOffset))
{
builder.StartObject(1);
LoginRequest.AddName(builder, name);
return LoginRequest.EndLoginRequest(builder);
}
示例12: CreateanchorPointsHolder
public static Offset<anchorPointsHolder> CreateanchorPointsHolder(FlatBufferBuilder builder,
VectorOffset anchorPoints = default(VectorOffset))
{
builder.StartObject(1);
anchorPointsHolder.AddAnchorPoints(builder, anchorPoints);
return anchorPointsHolder.EndanchorPointsHolder(builder);
}
示例13: CreateanimationMeshList
public static Offset<animationMeshList> CreateanimationMeshList(FlatBufferBuilder builder,
VectorOffset timeSamples = default(VectorOffset))
{
builder.StartObject(1);
animationMeshList.AddTimeSamples(builder, timeSamples);
return animationMeshList.EndanimationMeshList(builder);
}
示例14: CreateTestSimpleTableWithEnum
public static Offset<TestSimpleTableWithEnum> CreateTestSimpleTableWithEnum(FlatBufferBuilder builder,
Color color = Color.Green)
{
builder.StartObject(1);
TestSimpleTableWithEnum.AddColor(builder, color);
return TestSimpleTableWithEnum.EndTestSimpleTableWithEnum(builder);
}
示例15: CreateListModulesResponse
public static int CreateListModulesResponse(FlatBufferBuilder builder,
int entry = 0)
{
builder.StartObject(1);
ListModulesResponse.AddEntry(builder, entry);
return ListModulesResponse.EndListModulesResponse(builder);
}