cohtml.Net.IStreamReader
Object capable streaming file contents.
Inherits from SystemIDisposable
Inherited by cohtml.Net.ISyncStreamReader
Public Functions
Section titled “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
Section titled “Protected Attributes”| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual void Dispose()Reimplemented by: cohtml.Net.UnitySyncStreamReader.Dispose, cohtml.Net.ISyncStreamReader.Dispose
function GetSize
Section titled “function GetSize”virtual uint GetSize()Returns the file size.
Return: file size
Reimplemented by: cohtml.StreamReader.GetSize, cohtml.Net.UnitySyncStreamReader.GetSize
function Read
Section titled “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
Section titled “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
Section titled “Protected Attributes Documentation”variable swigCMemOwn
Section titled “variable swigCMemOwn”bool swigCMemOwn;© 2026 Coherent Labs. All rights reserved.