MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / fdFromHandle

Function fdFromHandle

source/core/StarFile_unix.cpp:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25namespace {
26 int fdFromHandle(void* ptr) {
27 return (int)(intptr_t)ptr;
28 }
29
30 void* handleFromFd(int handle) {
31 return (void*)(intptr_t)handle;

Callers 10

fseekMethod · 0.85
ftellMethod · 0.85
freadMethod · 0.85
fwriteMethod · 0.85
fsyncMethod · 0.85
fcloseMethod · 0.85
fsizeMethod · 0.85
preadMethod · 0.85
pwriteMethod · 0.85
resizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected