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


C# FlatBufferBuilder.Prep方法代码示例

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


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

示例1: CreateTest

 public static int CreateTest(FlatBufferBuilder builder, short A, sbyte B) {
   builder.Prep(2, 4);
   builder.Pad(1);
   builder.PutSbyte(B);
   builder.PutShort(A);
   return builder.Offset();
 }
开发者ID:rdumusc,项目名称:flatbuffers,代码行数:7,代码来源:Test.cs

示例2: CreateVec3

 public static int CreateVec3(FlatBufferBuilder builder, float X, float Y, float Z, double Test1, Color Test2, short Test_A, sbyte Test_B) {
   builder.Prep(16, 32);
   builder.Pad(2);
   builder.Prep(2, 4);
   builder.Pad(1);
   builder.PutSbyte(Test_B);
   builder.PutShort(Test_A);
   builder.Pad(1);
   builder.PutSbyte((sbyte)(Test2));
   builder.PutDouble(Test1);
   builder.Pad(4);
   builder.PutFloat(Z);
   builder.PutFloat(Y);
   builder.PutFloat(X);
   return builder.Offset();
 }
开发者ID:mystal,项目名称:flatbuffers,代码行数:16,代码来源:Vec3.cs

示例3: CreateStructInNestedNS

 public static Offset<StructInNestedNS> CreateStructInNestedNS(FlatBufferBuilder builder, int A, int B)
 {
     builder.Prep(4, 8);
     builder.PutInt(B);
     builder.PutInt(A);
     return new Offset<StructInNestedNS>(builder.Offset);
 }
开发者ID:CadeLaRen,项目名称:flatbuffers,代码行数:7,代码来源:StructInNestedNS.cs

示例4: CreateVec3

 public static Offset<Vec3> CreateVec3(FlatBufferBuilder builder, float X, float Y, float Z, double Test1, Color Test2, short test3_A, sbyte test3_B) {
   builder.Prep(16, 32);
   builder.Pad(2);
   builder.Prep(2, 4);
   builder.Pad(1);
   builder.PutSbyte(test3_B);
   builder.PutShort(test3_A);
   builder.Pad(1);
   builder.PutSbyte((sbyte)(Test2));
   builder.PutDouble(Test1);
   builder.Pad(4);
   builder.PutFloat(Z);
   builder.PutFloat(Y);
   builder.PutFloat(X);
   return new Offset<Vec3>(builder.Offset);
 }
开发者ID:RevenantX,项目名称:flatbuffers,代码行数:16,代码来源:Vec3.cs

示例5: CreateTest

 public static Offset<Test> CreateTest(FlatBufferBuilder builder, short A, sbyte B) {
   builder.Prep(2, 4);
   builder.Pad(1);
   builder.PutSbyte(B);
   builder.PutShort(A);
   return new Offset<Test>(builder.Offset);
 }
开发者ID:zzragida,项目名称:flatbuffers,代码行数:7,代码来源:Test.cs

示例6: CreateListModuleEntry

 public static int CreateListModuleEntry(FlatBufferBuilder builder, uint Handle, uint FunctionCount)
 {
     builder.Prep(4, 8);
     builder.PutUint(FunctionCount);
     builder.PutUint(Handle);
     return builder.Offset;
 }
开发者ID:SaviorXTanren,项目名称:xenia,代码行数:7,代码来源:ListModuleEntry.cs

示例7: CreateArea

 public static Offset<Area> CreateArea(FlatBufferBuilder builder, float Largura, float Comprimento)
 {
     builder.Prep(4, 8);
     builder.PutFloat(Comprimento);
     builder.PutFloat(Largura);
     return new Offset<Area>(builder.Offset);
 }
开发者ID:talkitbr,项目名称:FlatBuffers,代码行数:7,代码来源:Area.cs

示例8: CreateXObject

 public static int CreateXObject(FlatBufferBuilder builder, uint Handle)
 {
     builder.Prep(4, 4);
     builder.PutUint(Handle);
     return builder.Offset;
 }
开发者ID:SaviorXTanren,项目名称:xenia,代码行数:6,代码来源:XObject.cs

示例9: CreateBreakpoint

 public static int CreateBreakpoint(FlatBufferBuilder builder, uint BreakpointId)
 {
     builder.Prep(4, 4);
     builder.PutUint(BreakpointId);
     return builder.Offset;
 }
开发者ID:SaviorXTanren,项目名称:xenia,代码行数:6,代码来源:Breakpoint.cs


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