Click or drag to resize
LockableOffsetBufferProviderT Class
Represents a buffer manager maintaining a locked and unlocked list of MediaBuffer objects. The goal is to re-use MediaBuffer objects and therefore minimizing managed heap utilization. Using LockableRingBuffer should make the user aware, that buffers will need to be unlocked manually to discard them.
Inheritance Hierarchy
SystemObject
  StreamCodersLockableOperationProvider
    StreamCodersLockableOffsetBufferProviderT

Namespace: StreamCoders
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public class LockableOffsetBufferProvider<T> : LockableOperationProvider, 
	ILockableBufferProvider<T>, ILockableOperationProvider
where T : class, new(), ILockableOperationClient, IOffsetBuffer

Type Parameters

T
Must be an IMediaBuffer derivative.

The LockableOffsetBufferProviderT type exposes the following members.

Constructors
  NameDescription
Public methodLockableOffsetBufferProviderT
Initializes a new instance of the LockableOffsetBufferProviderT class
Top
Properties
  NameDescription
Public propertyLockedClientCount
Gets the amount of locked clients.
(Inherited from LockableOperationProvider.)
Public propertyUnlockedClientCount
Gets the number of unlocked clients.
(Inherited from LockableOperationProvider.)
Top
Methods
  NameDescription
Public methodAcquireBuffer
Finds or creates a new MediaBuffer object based on the bufferSize criteria. AllowGrow must be set in order to create new MediaBuffer objects.
Public methodClearAllClients
Unlocks all locked clients and then removes all unlocked clients.
(Inherited from LockableOperationProvider.)
Public methodClearAllUnlockedClients
Removes all unlocked clients.
(Inherited from LockableOperationProvider.)
Public methodIsLocked
Checks whether a particular ILockableOperationClient instance is locked.
(Inherited from LockableOperationProvider.)
Public methodLockClient (Inherited from LockableOperationProvider.)
Public methodTryUnlockClient
Attempts to unlock a client.
(Inherited from LockableOperationProvider.)
Public methodUnlockAllClients
Unlocks all locked clients.
(Inherited from LockableOperationProvider.)
Public methodUnlockClient
Unlocks a client lock. If the operation fails an exception is thrown.
(Inherited from LockableOperationProvider.)
Top
Extension Methods
  NameDescription
Public Extension MethodCopyOverloaded.
Creates a copy of the object.
(Defined by ObjectExtensions.)
Public Extension MethodCopy(Object)Overloaded.
Creates a deep copy of the object using the supplied object as a target for the copy operation.
(Defined by ObjectExtensions.)
Top
See Also

Reference

StreamCodersILockableBufferProviderT