cohtml.Net.UnitySyncStreamReader
Responsible for synchronously reading local resources.
Inherits from cohtml.Net.ISyncStreamReader, cohtml.Net.IStreamReader, SystemIDisposable
Inherited by cohtml.StreamReader
Public Functions
| Name | |
|---|---|
| virtual override 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. |
| UnitySyncStreamReader() | |
| delegate uint | SwigDelegateUnitySyncStreamReader_0(global.System.IntPtr swigId) |
| delegate uint | SwigDelegateUnitySyncStreamReader_1(uint offset, global.System.IntPtr buffer, uint count, global.System.IntPtr swigId) |
| delegate void | SwigDelegateUnitySyncStreamReader_2(global.System.IntPtr swigId) |
Additional inherited members
Protected Attributes inherited from cohtml.Net.IStreamReader
| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
function Dispose
virtual override void Dispose()
Reimplements: cohtml.Net.ISyncStreamReader.Dispose
function GetSize
virtual uint GetSize()
Returns the file size.
Return: file size
Reimplements: cohtml.Net.IStreamReader.GetSize
Reimplemented by: 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
Reimplements: cohtml.Net.IStreamReader.Read
function Close
virtual void Close()
Marks this object as closed - it will no longer be used and its memory should be freed.
Reimplements: cohtml.Net.IStreamReader.Close
Reimplemented by: cohtml.StreamReader.Close
function UnitySyncStreamReader
UnitySyncStreamReader()
function SwigDelegateUnitySyncStreamReader_0
delegate uint SwigDelegateUnitySyncStreamReader_0(
global.System.IntPtr swigId
)
function SwigDelegateUnitySyncStreamReader_1
delegate uint SwigDelegateUnitySyncStreamReader_1(
uint offset,
global.System.IntPtr buffer,
uint count,
global.System.IntPtr swigId
)
function SwigDelegateUnitySyncStreamReader_2
delegate void SwigDelegateUnitySyncStreamReader_2(
global.System.IntPtr swigId
)