java.lang.Object
com.dylibso.chicory.wasi.WasiPreview1
- All Implemented Interfaces:
Closeable,AutoCloseable
WASI preview 1 implementation
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintadapterCloseBadfd(int fd) intadapterOpenBadfd(int fd) intargsGet(com.dylibso.chicory.runtime.Memory memory, int argv, int argvBuf) intargsSizesGet(com.dylibso.chicory.runtime.Memory memory, int argc, int argvBufSize) static WasiPreview1.Builderbuilder()intclockResGet(com.dylibso.chicory.runtime.Memory memory, int clockId, int resultPtr) intclockTimeGet(com.dylibso.chicory.runtime.Memory memory, int clockId, long precision, int resultPtr) voidclose()intenvironGet(com.dylibso.chicory.runtime.Memory memory, int environ, int environBuf) intenvironSizesGet(com.dylibso.chicory.runtime.Memory memory, int environCount, int environBufSize) intfdAdvise(int fd, long offset, long len, int advice) intfdAllocate(int fd, long offset, long len) intfdClose(int fd) intfdDatasync(int fd) intfdFdstatGet(com.dylibso.chicory.runtime.Memory memory, int fd, int buf) intfdFdstatSetFlags(int fd, int flags) intfdFdstatSetRights(int fd, long rightsBase, long rightsInheriting) intfdFilestatGet(com.dylibso.chicory.runtime.Memory memory, int fd, int buf) intfdFilestatSetSize(int fd, long size) intfdFilestatSetTimes(int fd, long accessTime, long modifiedTime, int fstFlags) intfdPread(com.dylibso.chicory.runtime.Memory memory, int fd, int iovs, int iovsLen, long offset, int nreadPtr) intfdPrestatDirName(com.dylibso.chicory.runtime.Memory memory, int fd, int path, int pathLen) intfdPrestatGet(com.dylibso.chicory.runtime.Memory memory, int fd, int buf) intfdPwrite(com.dylibso.chicory.runtime.Memory memory, int fd, int iovs, int iovsLen, long offset, int nwrittenPtr) intfdRead(com.dylibso.chicory.runtime.Memory memory, int fd, int iovs, int iovsLen, int nreadPtr) intfdReaddir(com.dylibso.chicory.runtime.Memory memory, int dirFd, int buf, int bufLen, long cookie, int bufUsedPtr) intfdRenumber(int from, int to) intfdSeek(com.dylibso.chicory.runtime.Memory memory, int fd, long offset, int whence, int newOffsetPtr) intfdSync(int fd) intfdTell(com.dylibso.chicory.runtime.Memory memory, int fd, int offsetPtr) intfdWrite(com.dylibso.chicory.runtime.Memory memory, int fd, int iovs, int iovsLen, int nwrittenPtr) intpathCreateDirectory(int dirFd, String rawPath) intpathFilestatGet(com.dylibso.chicory.runtime.Memory memory, int dirFd, int lookupFlags, String rawPath, int buf) intpathFilestatSetTimes(int fd, int lookupFlags, String rawPath, long accessTime, long modifiedTime, int fstFlags) intintpathOpen(com.dylibso.chicory.runtime.Memory memory, int dirFd, int lookupFlags, String rawPath, int openFlags, long rightsBase, long rightsInheriting, int fdFlags, int fdPtr) intpathReadlink(com.dylibso.chicory.runtime.Memory memory, int dirFd, String rawPath, int buf, int bufLen, int bufUsedPtr) intpathRemoveDirectory(int dirFd, String rawPath) intpathRename(int oldFd, String oldRawPath, int newFd, String newRawPath) intpathSymlink(String oldRawPath, int dirFd, String newRawPath) intpathUnlinkFile(int dirFd, String rawPath) intpollOneoff(com.dylibso.chicory.runtime.Memory memory, int inPtr, int outPtr, int nsubscriptions, int neventsPtr) voidprocExit(int code) intprocRaise(int sig) intrandomGet(com.dylibso.chicory.runtime.Memory memory, int buf, int bufLen) intintsockAccept(int sock, int fdFlags, int roFdPtr) intsockRecv(int sock, int riDataPtr, int riDataLen, int riFlags, int roDataLenPtr, int roFlagsPtr) intsockSend(int sock, int siDataPtr, int siDataLen, int siFlags, int retDataLenPtr) intsockShutdown(int sock, int how) com.dylibso.chicory.runtime.HostFunction[]
-
Method Details
-
builder
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
adapterCloseBadfd
public int adapterCloseBadfd(int fd) -
adapterOpenBadfd
public int adapterOpenBadfd(int fd) -
argsGet
public int argsGet(com.dylibso.chicory.runtime.Memory memory, int argv, int argvBuf) -
argsSizesGet
public int argsSizesGet(com.dylibso.chicory.runtime.Memory memory, int argc, int argvBufSize) -
clockResGet
public int clockResGet(com.dylibso.chicory.runtime.Memory memory, int clockId, int resultPtr) -
clockTimeGet
public int clockTimeGet(com.dylibso.chicory.runtime.Memory memory, int clockId, long precision, int resultPtr) -
environGet
public int environGet(com.dylibso.chicory.runtime.Memory memory, int environ, int environBuf) -
environSizesGet
public int environSizesGet(com.dylibso.chicory.runtime.Memory memory, int environCount, int environBufSize) -
fdAdvise
public int fdAdvise(int fd, long offset, long len, int advice) -
fdAllocate
public int fdAllocate(int fd, long offset, long len) -
fdClose
public int fdClose(int fd) -
fdDatasync
public int fdDatasync(int fd) -
fdFdstatGet
public int fdFdstatGet(com.dylibso.chicory.runtime.Memory memory, int fd, int buf) -
fdFdstatSetFlags
public int fdFdstatSetFlags(int fd, int flags) -
fdFdstatSetRights
public int fdFdstatSetRights(int fd, long rightsBase, long rightsInheriting) -
fdFilestatGet
public int fdFilestatGet(com.dylibso.chicory.runtime.Memory memory, int fd, int buf) -
fdFilestatSetSize
public int fdFilestatSetSize(int fd, long size) -
fdFilestatSetTimes
public int fdFilestatSetTimes(int fd, long accessTime, long modifiedTime, int fstFlags) -
fdPread
public int fdPread(com.dylibso.chicory.runtime.Memory memory, int fd, int iovs, int iovsLen, long offset, int nreadPtr) -
fdPrestatDirName
public int fdPrestatDirName(com.dylibso.chicory.runtime.Memory memory, int fd, int path, int pathLen) -
fdPrestatGet
public int fdPrestatGet(com.dylibso.chicory.runtime.Memory memory, int fd, int buf) -
fdPwrite
public int fdPwrite(com.dylibso.chicory.runtime.Memory memory, int fd, int iovs, int iovsLen, long offset, int nwrittenPtr) -
fdRead
public int fdRead(com.dylibso.chicory.runtime.Memory memory, int fd, int iovs, int iovsLen, int nreadPtr) -
fdReaddir
public int fdReaddir(com.dylibso.chicory.runtime.Memory memory, int dirFd, int buf, int bufLen, long cookie, int bufUsedPtr) -
fdRenumber
public int fdRenumber(int from, int to) -
fdSeek
public int fdSeek(com.dylibso.chicory.runtime.Memory memory, int fd, long offset, int whence, int newOffsetPtr) -
fdSync
public int fdSync(int fd) -
fdTell
public int fdTell(com.dylibso.chicory.runtime.Memory memory, int fd, int offsetPtr) -
fdWrite
public int fdWrite(com.dylibso.chicory.runtime.Memory memory, int fd, int iovs, int iovsLen, int nwrittenPtr) -
pathCreateDirectory
-
pathFilestatGet
public int pathFilestatGet(com.dylibso.chicory.runtime.Memory memory, int dirFd, int lookupFlags, String rawPath, int buf) -
pathFilestatSetTimes
public int pathFilestatSetTimes(int fd, int lookupFlags, String rawPath, long accessTime, long modifiedTime, int fstFlags) -
pathLink
-
pathOpen
public int pathOpen(com.dylibso.chicory.runtime.Memory memory, int dirFd, int lookupFlags, String rawPath, int openFlags, long rightsBase, long rightsInheriting, int fdFlags, int fdPtr) -
pathReadlink
public int pathReadlink(com.dylibso.chicory.runtime.Memory memory, int dirFd, String rawPath, int buf, int bufLen, int bufUsedPtr) -
pathRemoveDirectory
-
pathRename
-
pathSymlink
-
pathUnlinkFile
-
pollOneoff
public int pollOneoff(com.dylibso.chicory.runtime.Memory memory, int inPtr, int outPtr, int nsubscriptions, int neventsPtr) -
procExit
public void procExit(int code) -
procRaise
public int procRaise(int sig) -
randomGet
public int randomGet(com.dylibso.chicory.runtime.Memory memory, int buf, int bufLen) -
schedYield
public int schedYield() -
sockAccept
public int sockAccept(int sock, int fdFlags, int roFdPtr) -
sockRecv
public int sockRecv(int sock, int riDataPtr, int riDataLen, int riFlags, int roDataLenPtr, int roFlagsPtr) -
sockSend
public int sockSend(int sock, int siDataPtr, int siDataLen, int siFlags, int retDataLenPtr) -
sockShutdown
public int sockShutdown(int sock, int how) -
toHostFunctions
public com.dylibso.chicory.runtime.HostFunction[] toHostFunctions()
-