mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 13:13:37 +08:00
Bug: none Change-Id: I7b92e1d3c7e14729d99fb8b540d93d9d0be0ecba Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4756724 Auto-Submit: Randolf Jung <jrandolf@chromium.org> Reviewed-by: Simon Zünd <szuend@chromium.org> Commit-Queue: Simon Zünd <szuend@chromium.org>
19 lines
775 B
TypeScript
19 lines
775 B
TypeScript
import { EitherModule } from "./emscripten-types";
|
|
import { OwnedHeapCharPointer, JSContextPointerPointer, JSValueConstPointerPointer, JSValuePointerPointer } from "./types-ffi";
|
|
import { Lifetime } from "./lifetime";
|
|
import { QuickJSHandle } from "./types";
|
|
/**
|
|
* @private
|
|
*/
|
|
export declare class ModuleMemory {
|
|
module: EitherModule;
|
|
constructor(module: EitherModule);
|
|
toPointerArray(handleArray: QuickJSHandle[]): Lifetime<JSValueConstPointerPointer>;
|
|
newMutablePointerArray<T extends JSContextPointerPointer | JSValuePointerPointer>(length: number): Lifetime<{
|
|
typedArray: Int32Array;
|
|
ptr: T;
|
|
}>;
|
|
newHeapCharPointer(string: string): Lifetime<OwnedHeapCharPointer>;
|
|
consumeHeapCharPointer(ptr: OwnedHeapCharPointer): string;
|
|
}
|