summaryrefslogtreecommitdiff
path: root/cli/dts
diff options
context:
space:
mode:
authorAapo Alasuutari <aapo.alasuutari@gmail.com>2022-08-05 19:27:12 +0300
committerGitHub <noreply@github.com>2022-08-05 21:57:12 +0530
commit9c594de0ff7cf363816cda0d31b777f4607299a1 (patch)
tree255170ced40116c21307195cc0b26bb1b1a903e6 /cli/dts
parent569910856e648e8cdaad85916eb82fea3c75ed8b (diff)
feat(ext/ffi): Add static method variants to Deno.UnsafePointerView (#15146)
Diffstat (limited to 'cli/dts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts16
1 files changed, 15 insertions, 1 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 037dbe2c1..60637f226 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -535,10 +535,24 @@ declare namespace Deno {
getFloat64(offset?: number): number;
/** Gets a C string (null terminated string) at the specified byte offset from the pointer. */
getCString(offset?: number): string;
+ /** Gets a C string (null terminated string) at the specified byte offset from the specified pointer. */
+ static getCString(pointer: BigInt, offset?: number): string;
/** Gets an ArrayBuffer of length `byteLength` at the specified byte offset from the pointer. */
getArrayBuffer(byteLength: number, offset?: number): ArrayBuffer;
- /** Copies the memory of the pointer into a typed array. Length is determined from the typed array's `byteLength`. Also takes optional offset from the pointer. */
+ /** Gets an ArrayBuffer of length `byteLength` at the specified byte offset from the specified pointer. */
+ static getArrayBuffer(
+ pointer: BigInt,
+ byteLength: number,
+ offset?: number,
+ ): ArrayBuffer;
+ /** Copies the memory of the pointer into a typed array. Length is determined from the typed array's `byteLength`. Also takes optional byte offset from the pointer. */
copyInto(destination: TypedArray, offset?: number): void;
+ /** Copies the memory of the specified pointer into a typed array. Length is determined from the typed array's `byteLength`. Also takes optional byte offset from the pointer. */
+ static copyInto(
+ pointer: BigInt,
+ destination: TypedArray,
+ offset?: number,
+ ): void;
}
/**