Skip to main content

method Deno.UnsafePointerView.getCString

#UnsafePointerView.getCString(
pointer: PointerObject,
offset?: number,
): string

Gets a UTF-8 encoded string at the specified byte offset from the specified pointer until 0 byte.

Returned string doesn't include U+0000 character.

Invalid UTF-8 characters are replaced with U+FFFD character in the returned string.

Parameters #

#pointer: PointerObject
#offset: number
optional

Return Type #

string

你找到了你需要的东西吗?

隐私政策