Methods
Static allocateRw
- allocateRw(size: number): NativePointer
-
Parameters
Returns NativePointer
Static allocateString
- allocateString(what: string): NativePointer
-
Parameters
Returns NativePointer
Static fopen
- fopen(filePath: string, perm: string): NativeReturnValue
-
Parameters
-
filePath: string
-
perm: string
Returns NativeReturnValue
Static popen
- popen(filePath: string, perm: string): NativeReturnValue
-
Parameters
-
filePath: string
-
perm: string
Returns NativeReturnValue
Static readStringFromFile
- readStringFromFile(filePath: string): string
-
Parameters
Returns string
Static readStringFromFp
- readStringFromFp(fp: NativePointer): string
-
Parameters
Returns string
Static writeStringToFile
- writeStringToFile(filePath: string, content: string, append: boolean): void
-
Parameters
-
filePath: string
-
content: string
-
append: boolean
Returns void
Allocate the given size in the heap