Пример #1
0
 public static Offset <AudioEventGroup> CreateAudioEventGroup(FlatBufferBuilder builder,
                                                              VectorOffset eventIdsOffset      = default(VectorOffset),
                                                              VectorOffset volumesOffset       = default(VectorOffset),
                                                              VectorOffset probabilitiesOffset = default(VectorOffset))
 {
     builder.StartObject(3);
     AudioEventGroup.AddProbabilities(builder, probabilitiesOffset);
     AudioEventGroup.AddVolumes(builder, volumesOffset);
     AudioEventGroup.AddEventIds(builder, eventIdsOffset);
     return(AudioEventGroup.EndAudioEventGroup(builder));
 }
Пример #2
0
 public static AudioEventGroup GetRootAsAudioEventGroup(ByteBuffer _bb, AudioEventGroup obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }