JavaScript OS.Shared

Module OS.Shared contains tools to interact with the operating system (and, more generally, in C) in JavaScript. All these tools are designed to be used with js-ctypes.

For the moment, module OS.Shared is accessible only from chrome workers.

Global object OS.Shared.Type

Properties

 

void_t
voidptr_t
char
jschar
int
unsigned_int
int32_t
uint32_t
int64_t
uint64_t
long
bool
off_t
size_t
ssize_t
fd
(Unix only)
negativeone_or_fd
(Unix only)
negativeone_or_nothing
(Unix only)
string
(Unix only)
null_or_string
(Unix only)
HANDLE
(Windows only)
maybe_HANDLE
(Windows only)
DWORD
(Windows only)
negative_or_DWORD
(Windows only)
zero_or_DWORD
(Windows only)
zero_or_nothing
(Windows only)

declareFFI()

intn_t()

uintn_t()

Instances of OS.Shared.Type

convert_from_c()

releaseWith()

Attributes

Global object OS.Shared.HollowStructure

in_ptr
out_ptr
inout_ptr

Document Tags and Contributors

 Contributors to this page: Yoric
 Last updated by: Yoric,