java.lang.Object
org.jnetpcap.internal.ForeignUtils
The Class ForeignUtils.
- Author:
- Sly Technologies Inc, repos@slytechs.com
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isNullAddress
(MemorySegment address) Checks if is null address.static MemoryLayout.PathElement[]
Generates an element path for MemoryLayouts based on dot-separated MemoryLayout path.static MemorySegment
readAddress
(VarHandle handle, MemorySegment addressAt) Read address.static String
toJavaString
(MemorySegment addr) To java string.static String
toJavaString
(Object memorySegment) To java string.
-
Field Details
-
EMPTY_CLEANUP
-
-
Method Details
-
toJavaString
-
isNullAddress
Checks if is null address.- Parameters:
address
- the address- Returns:
- true, if is null address
-
toJavaString
To java string.- Parameters:
addr
- the addr- Returns:
- the string
-
readAddress
Read address.- Parameters:
handle
- the handleaddressAt
- the address at- Returns:
- the memory segment
-
path
Generates an element path for MemoryLayouts based on dot-separated MemoryLayout path.- Parameters:
path
- the source path to be parsed- Returns:
- the generated array of path elements
-