Photon Voice  v2.8
English | 日本語 | 한국
Public Member Functions | Protected Attributes | List of all members
BufferReaderPushAdapter< T > Class Template Reference

Simple BufferReaderPushAdapterBase implementation using a single buffer, using synchronous LocalVoice.PushData More...

Inherits BufferReaderPushAdapterBase< T >.

Public Member Functions

 BufferReaderPushAdapter (LocalVoice localVoice, IDataReader< T > reader)
 Create a new BufferReaderPushAdapter instance More...
 
override void Service (LocalVoice localVoice)
 Do the actual data read/push. More...
 
- Public Member Functions inherited from BufferReaderPushAdapterBase< T >
 BufferReaderPushAdapterBase (IDataReader< T > reader)
 Create a new BufferReaderPushAdapterBase instance More...
 
void Dispose ()
 Release resources associated with this instance. More...
 

Protected Attributes

T[] buffer
 
- Protected Attributes inherited from BufferReaderPushAdapterBase< T >
IDataReader< T > reader
 

Detailed Description

Simple BufferReaderPushAdapterBase implementation using a single buffer, using synchronous LocalVoice.PushData

Constructor & Destructor Documentation

BufferReaderPushAdapter ( LocalVoice  localVoice,
IDataReader< T >  reader 
)

Create a new BufferReaderPushAdapter instance

Parameters
localVoiceLocalVoice instance to push data to.
readerDataReader to read from.

Member Function Documentation

override void Service ( LocalVoice  localVoice)
virtual

Do the actual data read/push.

Parameters
localVoiceLocalVoice instance to push data to.

Implements BufferReaderPushAdapterBase< T >.