FdObjEpollData.encode

Encodes the Object's address and the fd's least significant byte into a ulong, suitable to register with epoll.

struct FdObjEpollData
static
ulong
encode
(
Object obj
,
int fd
)

Parameters

obj Object

Object to store in the epoll_data instance

fd int

file descriptor to store the least significant byte of in the epoll_data instance.

Return Value

Type: ulong

combination of the Objects's current address and part of the fd to register with the epoll.

Meta