Skip to content

Commit 298776b

Browse files
committed
Update getMemorySegmentInfo API
1 parent 80b30d4 commit 298776b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ API
250250
* Module#**getNumMemorySegments**(): `number`<br />
251251
Gets the number of memory segments within the module.
252252

253-
* Module#**getMemorySegmentInfoByIndex**(index: `number`): `MemorySegmentInfo`<br />
253+
* Module#**getMemorySegmentInfo**(name: `string`): `MemorySegmentInfo`<br />
254254
Gets information about the memory segment at the specified index.
255255

256256
* MemorySegmentInfo#**offset**: `number`

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ declare module binaryen {
17531753
getNumExports(): number;
17541754
getExportByIndex(index: number): ExportRef;
17551755
setMemory(initial: number, maximum: number, exportName?: string | null, segments?: MemorySegment[] | null, shared?: boolean, memory64?: boolean, internalName?: string): void;
1756-
getMemorySegmentInfoByIndex(index: number): MemorySegmentInfo;
1756+
getMemorySegmentInfo(name: string): MemorySegmentInfo;
17571757
setStart(start: FunctionRef): void;
17581758
getFeatures(): Features;
17591759
setFeatures(features: Features): void;

0 commit comments

Comments
 (0)