cohtml.Net.IStreamReader
Object capable streaming file contents.
Inherits from SystemIDisposable
Inherited by cohtml.Net.ISyncStreamReader
Public Functions
Name | |
---|---|
virtual void | Dispose() |
virtual uint | GetSize() Returns the file size. |
virtual uint | Read(uint offset, global.System.IntPtr buffer, uint count) Reads count bytes into buffer starting from offset. |
virtual void | Close() Marks this object as closed - it will no longer be used and its memory should be freed. |
Protected Attributes
Name | |
---|---|
bool | swigCMemOwn |
Public Functions Documentation
function Dispose
virtual void Dispose()
Reimplemented by: cohtml.Net.UnitySyncStreamReader.Dispose, cohtml.Net.ISyncStreamReader.Dispose
function GetSize
virtual uint GetSize()
Returns the file size.
Return: file size
Reimplemented by: cohtml.Net.UnitySyncStreamReader.GetSize, cohtml.StreamReader.GetSize
function Read
virtual uint Read(
uint offset,
global.System.IntPtr buffer,
uint count
)
Reads count bytes into buffer starting from offset.
Parameters:
- offset the position at which to begin reading
- buffer pointer to the buffer where to copy the file contents
- count number of bytes to read
Return: number of bytes successfully read
Reimplemented by: cohtml.Net.UnitySyncStreamReader.Read
function Close
virtual void Close()
Marks this object as closed - it will no longer be used and its memory should be freed.
Reimplemented by: cohtml.StreamReader.Close, cohtml.Net.UnitySyncStreamReader.Close
Protected Attributes Documentation
variable swigCMemOwn
bool swigCMemOwn;