Function in ldk_asset_source.h

ldk_asset_source_file_read

Read the asset source file.

LDK_API bool ldk_asset_source_file_read(
 const LDKAssetSourceFile *file,
 void *out_data,
 u64 out_size
);

Parameters

const LDKAssetSourceFile *file
File used by this operation.
void *out_data
Destination buffer for the resulting data.
u64 out_size
Receives or specifies the byte size of the output buffer, as defined by the operation.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_asset_source.h

ldk_asset_source_file_read_async

Begin asynchronous reading of an asset file.

LDK_API LDKAsyncRead ldk_asset_source_file_read_async(
 const LDKAssetSourceFile *file,
 void *out_data,
 u64 out_size
);

Parameters

const LDKAssetSourceFile *file
File used by this operation.
void *out_data
Destination buffer for the resulting data.
u64 out_size
Receives or specifies the byte size of the output buffer, as defined by the operation.

Returns

The requested value.

Function in ldk_asset_source.h

ldk_asset_source_file_read_at

Read bytes from an asset source file at the given offset.

LDK_API bool ldk_asset_source_file_read_at(
 const LDKAssetSourceFile *file,
 u64 offset,
 void *out_data,
 u64 size,
 u64 *out_read
);

Parameters

const LDKAssetSourceFile *file
File used by this operation.
u64 offset
Byte offset into the resource or entry.
void *out_data
Destination buffer for the resulting data.
u64 size
Size of the data or region, in bytes where applicable.
u64 *out_read
Receives the number of bytes actually read.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_asset_source.h

ldk_asset_source_file_read_at_async

Begin asynchronous reading from an asset file at an offset.

LDK_API LDKAsyncRead ldk_asset_source_file_read_at_async(
 const LDKAssetSourceFile *file,
 u64 offset,
 void *out_data,
 u64 size,
 u64 *out_read
);

Parameters

const LDKAssetSourceFile *file
File used by this operation.
u64 offset
Byte offset into the resource or entry.
void *out_data
Destination buffer for the resulting data.
u64 size
Size of the data or region, in bytes where applicable.
u64 *out_read
Receives the number of bytes actually read.

Returns

The requested value.