Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/types-ios/src/lib/ios/interop.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ declare module interop {
*/
function bufferFromData(data: NSData): ArrayBuffer;

/**
* Converts a CString to a JavaScript string.
* @param cString A pointer to a CString.
* @param lengthInBytes The length of the string in bytes. UTF-8 characters may be more than one byte. If not provided the string is assumed to be null-terminated.
* @returns A JavaScript string with length <= lengthInBytes.
*/
function stringFromCString(cString: Pointer | Reference<number>, lengthInBytes?: number): string;

/**
* A type that wraps a pointer and allows read/write operations on its value.
*/
Expand Down