コード例 #1
0
 public static Offset <NymaTypes.NDeviceInfo> CreateNDeviceInfo(FlatBufferBuilder builder,
                                                                StringOffset ShortNameOffset   = default(StringOffset),
                                                                StringOffset FullNameOffset    = default(StringOffset),
                                                                StringOffset DescriptionOffset = default(StringOffset),
                                                                NymaTypes.DeviceFlags Flags    = 0,
                                                                uint ByteLength           = 0,
                                                                VectorOffset InputsOffset = default(VectorOffset))
 {
     builder.StartTable(6);
     NDeviceInfo.AddInputs(builder, InputsOffset);
     NDeviceInfo.AddByteLength(builder, ByteLength);
     NDeviceInfo.AddDescription(builder, DescriptionOffset);
     NDeviceInfo.AddFullName(builder, FullNameOffset);
     NDeviceInfo.AddShortName(builder, ShortNameOffset);
     NDeviceInfo.AddFlags(builder, Flags);
     return(NDeviceInfo.EndNDeviceInfo(builder));
 }
コード例 #2
0
 public static NDeviceInfo GetRootAsNDeviceInfo(ByteBuffer _bb, NDeviceInfo obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }