You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: std/assembly/index.d.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -493,10 +493,14 @@ declare class ArrayBuffer {
493
493
readonlybyteLength: i32;
494
494
/** Unsafe pointer to the start of the data in memory. */
495
495
readonlydata: usize;
496
+
/** Returns true if value is one of the ArrayBuffer views, such as typed array or a DataView **/
497
+
staticisView<T>(value: T): bool;
496
498
/** Constructs a new array buffer of the given length in bytes. */
497
499
constructor(length: i32,unsafe?: bool);
498
500
/** Returns a copy of this array buffer's bytes from begin, inclusive, up to end, exclusive. */
499
501
slice(begin?: i32,end?: i32): ArrayBuffer;
502
+
/** Returns a string representation of ArrayBuffer. */
503
+
toString(): string;
500
504
}
501
505
502
506
/** The `DataView` view provides a low-level interface for reading and writing multiple number types in a binary `ArrayBuffer`, without having to care about the platform's endianness. */
0 commit comments