public static Offset <UIHardwareState> CreateUIHardwareState(FlatBufferBuilder builder, VectorOffset gpuMemoryOffset = default(VectorOffset), long hostMemory = 0) { builder.StartObject(2); UIHardwareState.AddHostMemory(builder, hostMemory); UIHardwareState.AddGpuMemory(builder, gpuMemoryOffset); return(UIHardwareState.EndUIHardwareState(builder)); }
public static UIHardwareState GetRootAsUIHardwareState(ByteBuffer _bb, UIHardwareState obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }