public IBuffer GetBuffer() { var ptr = MmalQueue.Get(Ptr); if (!CheckState()) { MmalLog.Logger.LogWarning("Buffer retrieved null."); return(null); } return(new MmalBuffer(ptr)); }
void Destroy() => MmalQueue.Destroy(Ptr);
public void Put(IBuffer buffer) => MmalQueue.Put(Ptr, buffer.Ptr);
public IBuffer TimedWait(int waitms) => new MmalBuffer(MmalQueue.TimedWait(Ptr, waitms));
public IBuffer Wait() => new MmalBuffer(MmalQueue.Wait(Ptr));
public uint QueueLength() => MmalQueue.Length(Ptr);