OpenCV for Unity 3.0.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/5.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.VideoioModule.IStreamReader Class Reference

Read data stream interface. More...

Public Member Functions

IntPtr getNativeObjAddr ()
 
virtual long read (byte[] buffer, long size)
 Read bytes from stream.
 
virtual long seek (long offset, int origin)
 Sets the stream position.
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 Releases resources used by this object.
 
void ThrowIfDisposed ()
 Throws ObjectDisposedException if this object has been disposed.
 

Static Public Member Functions

static IStreamReader __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 Returns the native pointer, or throws CoreModule.CvException if it is zero.
 

Protected Member Functions

 IStreamReader ()
 
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 Initializes a new instance with a zero native pointer and dispose enabled.
 
 DisposableOpenCVObject (bool isEnabledDispose)
 Initializes a new instance with a zero native pointer.
 
 DisposableOpenCVObject (IntPtr ptr)
 Initializes a new instance with the specified native pointer and dispose enabled.
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 Initializes a new instance with the specified native pointer.
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 Initializes a new instance with dispose enabled.
 
 DisposableObject (bool isEnabledDispose)
 Initializes a new instance.
 

Additional Inherited Members

- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

Read data stream interface.

Constructor & Destructor Documentation

◆ IStreamReader()

OpenCVForUnity.VideoioModule.IStreamReader.IStreamReader ( )
protected

Member Function Documentation

◆ __fromPtr__()

static IStreamReader OpenCVForUnity.VideoioModule.IStreamReader.__fromPtr__ ( IntPtr addr)
static

◆ Dispose()

override void OpenCVForUnity.VideoioModule.IStreamReader.Dispose ( bool disposing)
protectedvirtual

◆ getNativeObjAddr()

IntPtr OpenCVForUnity.VideoioModule.IStreamReader.getNativeObjAddr ( )

◆ read()

virtual long OpenCVForUnity.VideoioModule.IStreamReader.read ( byte[] buffer,
long size )
virtual

Read bytes from stream.

Parameters
bufferalready allocated buffer of at least size bytes
sizemaximum number of bytes to read
Returns
actual number of read bytes

◆ seek()

virtual long OpenCVForUnity.VideoioModule.IStreamReader.seek ( long offset,
int origin )
virtual

Sets the stream position.

Parameters
offsetSeek offset
originSEEK_SET / SEEK_END / SEEK_CUR
See also
fseek

The documentation for this class was generated from the following file: