Beispiel #1
0
 internal void Finish()
 {
     SafeNativeMethods.StreamDecoderFinish(_handle);
 }
Beispiel #2
0
 internal DecoderState GetState()
 {
     return(SafeNativeMethods.StreamDecoderGetState(_handle));
 }
Beispiel #3
0
 internal bool ProcessSingle()
 {
     return(SafeNativeMethods.StreamDecoderProcessSingle(_handle));
 }
Beispiel #4
0
 internal bool ProcessMetadata()
 {
     return(SafeNativeMethods.StreamDecoderProcessMetadata(_handle));
 }
Beispiel #5
0
 internal DecoderInitStatus Initialize()
 {
     return(SafeNativeMethods.StreamDecoderInitialize(_handle, _readCallback, _seekCallback, _tellCallback,
                                                      _lengthCallback, _eofCallback, _writeCallback, _metadataCallback, _errorCallback, IntPtr.Zero));
 }
Beispiel #6
0
 internal void SetMetadataRespond(MetadataType type)
 {
     SafeNativeMethods.StreamDecoderSetMetadataRespond(_handle, type);
 }
 protected override bool ReleaseHandle()
 {
     SafeNativeMethods.StreamEncoderDelete(handle);
     return(true);
 }