LDKAsyncRead
typedef LDKAsyncResult LDKAsyncRead;
typedef LDKAsyncResult LDKAsyncRead;
Read the asset source file.
LDK_API bool ldk_asset_source_file_read(
const LDKAssetSourceFile *file,
void *out_data,
u64 out_size
);
const LDKAssetSourceFile *filevoid *out_datau64 out_sizeTrue if the operation succeeds; false otherwise.
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
);
const LDKAssetSourceFile *filevoid *out_datau64 out_sizeThe requested value.
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
);
const LDKAssetSourceFile *fileu64 offsetvoid *out_datau64 sizeu64 *out_readTrue if the operation succeeds; false otherwise.
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
);
const LDKAssetSourceFile *fileu64 offsetvoid *out_datau64 sizeu64 *out_readThe requested value.