internal void Update() { if (GetQueuedSampleCount() > 0) { BufferReady.Invoke(this, EventArgs.Empty); } }
public static void Save(IValueSink sink, BufferReady value) { sink.EnterSequence(); Value <uint> .Save(sink, value.NotificationThreshold); Value <uint> .Save(sink, value.PreviousNotificationCount); sink.LeaveSequence(); }
public static void Save(IValueSink sink, BufferReady value) { sink.EnterSequence(); Value <DeviceObjectPropertyReference> .Save(sink, value.BufferProperty); Value <uint> .Save(sink, value.PreviousNotification); Value <uint> .Save(sink, value.CurrentNotification); sink.LeaveSequence(); }
internal void Update() { if (BufferReady != null) { int sampleCount = GetQueuedSampleCount(); if (sampleCount > 0) { BufferReady.Invoke(this, sampleCount); } } }
public BufferReadyWrapper(BufferReady item) { this.Item = item; }
public static void Save(IValueSink sink, BufferReady value) { sink.EnterSequence(); Value<DeviceObjectPropertyReference>.Save(sink, value.BufferProperty); Value<uint>.Save(sink, value.PreviousNotification); Value<uint>.Save(sink, value.CurrentNotification); sink.LeaveSequence(); }
public int GetData(byte[] buffer, int offset, int count) { // Just to avoid warning on BufferReady, code to remove BufferReady?.Invoke(this, EventArgs.Empty); throw new NotImplementedException(); }
public static void Save(IValueSink sink, BufferReady value) { sink.EnterSequence(); Value<uint>.Save(sink, value.NotificationThreshold); Value<uint>.Save(sink, value.PreviousNotificationCount); sink.LeaveSequence(); }