Skip to content
SiteEmail

cohtml.Net.UnitySyncStreamReader

Responsible for synchronously reading local resources.

Inherits from cohtml.Net.ISyncStreamReader, cohtml.Net.IStreamReader, SystemIDisposable

Inherited by cohtml.StreamReader

Name
virtual override voidDispose()
virtual uintGetSize()
Returns the file size.
virtual uintRead(uint offset, global.System.IntPtr buffer, uint count)
Reads count bytes into buffer starting from offset.
virtual voidClose()
Marks this object as closed - it will no longer be used and its memory should be freed.
UnitySyncStreamReader()
delegate uintSwigDelegateUnitySyncStreamReader_0(global.System.IntPtr swigId)
delegate uintSwigDelegateUnitySyncStreamReader_1(uint offset, global.System.IntPtr buffer, uint count, global.System.IntPtr swigId)
delegate voidSwigDelegateUnitySyncStreamReader_2(global.System.IntPtr swigId)

Protected Attributes inherited from cohtml.Net.IStreamReader

Name
boolswigCMemOwn
virtual override void Dispose()

Reimplements: cohtml.Net.ISyncStreamReader.Dispose

virtual uint GetSize()

Returns the file size.

Return: file size

Reimplements: cohtml.Net.IStreamReader.GetSize

Reimplemented by: cohtml.StreamReader.GetSize

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

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

UnitySyncStreamReader()

function SwigDelegateUnitySyncStreamReader_0

Section titled “function SwigDelegateUnitySyncStreamReader_0”
delegate uint SwigDelegateUnitySyncStreamReader_0(
global.System.IntPtr swigId
)

function SwigDelegateUnitySyncStreamReader_1

Section titled “function SwigDelegateUnitySyncStreamReader_1”
delegate uint SwigDelegateUnitySyncStreamReader_1(
uint offset,
global.System.IntPtr buffer,
uint count,
global.System.IntPtr swigId
)

function SwigDelegateUnitySyncStreamReader_2

Section titled “function SwigDelegateUnitySyncStreamReader_2”
delegate void SwigDelegateUnitySyncStreamReader_2(
global.System.IntPtr swigId
)