NativeBindings
Inherits from:
MagicLeapNativeBindings
Public Methods
delegate void CloseDelegate
public delegate void CloseDelegate(
ulong dataSourceHandle,
IntPtr context
)
Parameters
Type | Name | Description |
---|---|---|
ulong | dataSourceHandle | |
IntPtr | context |
MLResult.Code Create
public static MLResult.Code Create(
DataSource dataSource,
out ulong handle
)
Parameters
Type | Name | Description |
---|---|---|
DataSource | dataSource | |
out ulong | handle |
delegate long GetSizeDelegate
public delegate long GetSizeDelegate(
ulong dataSourceHandle,
IntPtr context
)
Parameters
Type | Name | Description |
---|---|---|
ulong | dataSourceHandle | |
IntPtr | context |
MLResult.Code MLMediaDataSourceCreate
public MLResult.Code MLMediaDataSourceCreate(
ReadAtDelegate readAt,
GetSizeDelegate getSize,
CloseDelegate close,
IntPtr context,
out ulong handle
)
Parameters
Type | Name | Description |
---|---|---|
ReadAtDelegate | readAt | |
GetSizeDelegate | getSize | |
CloseDelegate | close | |
IntPtr | context | |
out ulong | handle |
MLResult.Code MLMediaDataSourceDestroy
public MLResult.Code MLMediaDataSourceDestroy(
ulong handle
)
Parameters
Type | Name | Description |
---|---|---|
ulong | handle |
delegate long ReadAtDelegate
public delegate long ReadAtDelegate(
ulong dataSourceHandle,
ulong position,
ulong size,
IntPtr buffer,
IntPtr context
)
Parameters
Type | Name | Description |
---|---|---|
ulong | dataSourceHandle | |
ulong | position | |
ulong | size | |
IntPtr | buffer | |
IntPtr | context |