Class MemoryUtilFFM
java.lang.Object
org.lwjgl.system.ffm.MemoryUtilFFM
Additional memory utilities for FFM.
This API is meant to be used with static import.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidmemCopy(byte[] src, MemorySegment dst) Copies the source array to the current position of the destination memory segment.static voidmemCopy(byte[] src, MemorySegment dst, int offset, int size) Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.static voidmemCopy(char[] src, MemorySegment dst) Copies the source array to the current position of the destination memory segment.static voidmemCopy(char[] src, MemorySegment dst, int offset, int size) Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.static voidmemCopy(double[] src, MemorySegment dst) Copies the source array to the current position of the destination memory segment.static voidmemCopy(double[] src, MemorySegment dst, int offset, int size) Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.static voidmemCopy(float[] src, MemorySegment dst) Copies the source array to the current position of the destination memory segment.static voidmemCopy(float[] src, MemorySegment dst, int offset, int size) Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.static voidmemCopy(int[] src, MemorySegment dst) Copies the source array to the current position of the destination memory segment.static voidmemCopy(int[] src, MemorySegment dst, int offset, int size) Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.static voidmemCopy(long[] src, MemorySegment dst) Copies the source array to the current position of the destination memory segment.static voidmemCopy(long[] src, MemorySegment dst, int offset, int size) Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.static voidmemCopy(short[] src, MemorySegment dst) Copies the source array to the current position of the destination memory segment.static voidmemCopy(short[] src, MemorySegment dst, int offset, int size) Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.static voidmemCopy(MemorySegment src, byte[] dst) Copies the source memory segment to the destination array.static voidmemCopy(MemorySegment src, byte[] dst, int offset, int size) Copiessizeelements from the source memory segment to the destination array, starting atoffset.static voidmemCopy(MemorySegment src, char[] dst) Copies the source memory segment to the destination array.static voidmemCopy(MemorySegment src, char[] dst, int offset, int size) Copiessizeelements from the source memory segment to the destination array, starting atoffset.static voidmemCopy(MemorySegment src, double[] dst) Copies the source memory segment to the destination array.static voidmemCopy(MemorySegment src, double[] dst, int offset, int size) Copiessizeelements from the source memory segment to the destination array, starting atoffset.static voidmemCopy(MemorySegment src, float[] dst) Copies the source memory segment to the destination array.static voidmemCopy(MemorySegment src, float[] dst, int offset, int size) Copiessizeelements from the source memory segment to the destination array, starting atoffset.static voidmemCopy(MemorySegment src, int[] dst) Copies the source memory segment to the destination array.static voidmemCopy(MemorySegment src, int[] dst, int offset, int size) Copiessizeelements from the source memory segment to the destination array, starting atoffset.static voidmemCopy(MemorySegment src, long[] dst) Copies the source memory segment to the destination array.static voidmemCopy(MemorySegment src, long[] dst, int offset, int size) Copiessizeelements from the source memory segment to the destination array, starting atoffset.static voidmemCopy(MemorySegment src, short[] dst) Copies the source memory segment to the destination array.static voidmemCopy(MemorySegment src, short[] dst, int offset, int size) Copiessizeelements from the source memory segment to the destination array, starting atoffset.static voidmemCopy(MemorySegment src, MemorySegment dst) Sets all bytes in a specified block of memory to a copy of another block.static longmemGetAddress(MemorySegment segment, long offset) static longmemGetAddressAtIndex(MemorySegment segment, long index) static longmemGetAddressUnaligned(MemorySegment segment, long offset) static longmemGetAddressUnalignedAtIndex(MemorySegment segment, long index) static booleanmemGetBoolean(MemorySegment segment, long offset) static bytememGetByte(MemorySegment segment, long offset) static charmemGetChar(MemorySegment segment, long offset) static charmemGetCharAtIndex(MemorySegment segment, long index) static charmemGetCharUnaligned(MemorySegment segment, long offset) static charmemGetCharUnalignedAtIndex(MemorySegment segment, long index) static longmemGetCLong(MemorySegment segment, long offset) static longmemGetCLongAtIndex(MemorySegment segment, long index) static longmemGetCLongUnaligned(MemorySegment segment, long offset) static longmemGetCLongUnalignedAtIndex(MemorySegment segment, long index) static doublememGetDouble(MemorySegment segment, long offset) static doublememGetDoubleAtIndex(MemorySegment segment, long index) static doublememGetDoubleUnaligned(MemorySegment segment, long offset) static doublememGetDoubleUnalignedAtIndex(MemorySegment segment, long index) static floatmemGetFloat(MemorySegment segment, long offset) static floatmemGetFloatAtIndex(MemorySegment segment, long index) static floatmemGetFloatUnaligned(MemorySegment segment, long offset) static floatmemGetFloatUnalignedAtIndex(MemorySegment segment, long index) static intmemGetInt(MemorySegment segment, long offset) static intmemGetIntAtIndex(MemorySegment segment, long index) static intmemGetIntUnaligned(MemorySegment segment, long offset) static intmemGetIntUnalignedAtIndex(MemorySegment segment, long index) static longmemGetLong(MemorySegment segment, long offset) static longmemGetLongAtIndex(MemorySegment segment, long index) static longmemGetLongUnaligned(MemorySegment segment, long offset) static longmemGetLongUnalignedAtIndex(MemorySegment segment, long index) static shortmemGetShort(MemorySegment segment, long offset) static shortmemGetShortAtIndex(MemorySegment segment, long index) static shortmemGetShortUnaligned(MemorySegment segment, long offset) static shortmemGetShortUnalignedAtIndex(MemorySegment segment, long index) static voidmemPutAddress(MemorySegment segment, long offset, long value) static voidmemPutAddressAtIndex(MemorySegment segment, long index, long value) static voidmemPutAddressUnaligned(MemorySegment segment, long offset, long value) static voidmemPutAddressUnalignedAtIndex(MemorySegment segment, long index, long value) static voidmemPutBoolean(MemorySegment segment, long offset, boolean value) static voidmemPutByte(MemorySegment segment, long offset, byte value) static voidmemPutChar(MemorySegment segment, long offset, char value) static voidmemPutCharAtIndex(MemorySegment segment, long index, char value) static voidmemPutCharUnaligned(MemorySegment segment, long offset, char value) static voidmemPutCharUnalignedAtIndex(MemorySegment segment, long index, char value) static voidmemPutCLong(MemorySegment segment, long offset, long value) static voidmemPutCLongAtIndex(MemorySegment segment, long index, long value) static voidmemPutCLongUnaligned(MemorySegment segment, long offset, long value) static voidmemPutCLongUnalignedAtIndex(MemorySegment segment, long index, long value) static voidmemPutDouble(MemorySegment segment, long offset, double value) static voidmemPutDoubleAtIndex(MemorySegment segment, long index, double value) static voidmemPutDoubleUnaligned(MemorySegment segment, long offset, double value) static voidmemPutDoubleUnalignedAtIndex(MemorySegment segment, long index, double value) static voidmemPutFloat(MemorySegment segment, long offset, float value) static voidmemPutFloatAtIndex(MemorySegment segment, long index, float value) static voidmemPutFloatUnaligned(MemorySegment segment, long offset, float value) static voidmemPutFloatUnalignedAtIndex(MemorySegment segment, long index, float value) static voidmemPutInt(MemorySegment segment, long offset, int value) static voidmemPutIntAtIndex(MemorySegment segment, long index, int value) static voidmemPutIntUnaligned(MemorySegment segment, long offset, int value) static voidmemPutIntUnalignedAtIndex(MemorySegment segment, long index, int value) static voidmemPutLong(MemorySegment segment, long offset, long value) static voidmemPutLongAtIndex(MemorySegment segment, long index, long value) static voidmemPutLongUnaligned(MemorySegment segment, long offset, long value) static voidmemPutLongUnalignedAtIndex(MemorySegment segment, long index, long value) static voidmemPutShort(MemorySegment segment, long offset, short value) static voidmemPutShortAtIndex(MemorySegment segment, long index, short value) static voidmemPutShortUnaligned(MemorySegment segment, long offset, short value) static voidmemPutShortUnalignedAtIndex(MemorySegment segment, long index, short value) static voidmemSet(MemorySegment ptr, int value) Sets all bytes in a specified block of memory to a fixed value (usually zero).
-
Method Details
-
memSet
Sets all bytes in a specified block of memory to a fixed value (usually zero).- Parameters:
ptr- the starting memory addressvalue- the value to set (memSet will convert it to unsigned byte)
-
memCopy
Sets all bytes in a specified block of memory to a copy of another block.- Parameters:
src- the source memory addressdst- the destination memory address
-
memCopy
Copies the source array to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segment
-
memCopy
Copies the source array to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segment
-
memCopy
Copies the source array to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segment
-
memCopy
Copies the source array to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segment
-
memCopy
Copies the source array to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segment
-
memCopy
Copies the source array to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segment
-
memCopy
Copies the source array to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segment
-
memCopy
Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segmentoffset- the offset into the source arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segmentoffset- the offset into the source arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segmentoffset- the offset into the source arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segmentoffset- the offset into the source arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segmentoffset- the offset into the source arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segmentoffset- the offset into the source arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source array, starting atoffset, to the current position of the destination memory segment.- Parameters:
src- the source arraydst- the destination memory segmentoffset- the offset into the source arraysize- the number of elements to copy
-
memCopy
Copies the source memory segment to the destination array.- Parameters:
src- the source memory segmentdst- the destination array
-
memCopy
Copies the source memory segment to the destination array.- Parameters:
src- the source memory segmentdst- the destination array
-
memCopy
Copies the source memory segment to the destination array.- Parameters:
src- the source memory segmentdst- the destination array
-
memCopy
Copies the source memory segment to the destination array.- Parameters:
src- the source memory segmentdst- the destination array
-
memCopy
Copies the source memory segment to the destination array.- Parameters:
src- the source memory segmentdst- the destination array
-
memCopy
Copies the source memory segment to the destination array.- Parameters:
src- the source memory segmentdst- the destination array
-
memCopy
Copies the source memory segment to the destination array.- Parameters:
src- the source memory segmentdst- the destination array
-
memCopy
Copiessizeelements from the source memory segment to the destination array, starting atoffset.- Parameters:
src- the source memory segmentdst- the destination arrayoffset- the offset into the destination arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source memory segment to the destination array, starting atoffset.- Parameters:
src- the source memory segmentdst- the destination arrayoffset- the offset into the destination arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source memory segment to the destination array, starting atoffset.- Parameters:
src- the source memory segmentdst- the destination arrayoffset- the offset into the destination arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source memory segment to the destination array, starting atoffset.- Parameters:
src- the source memory segmentdst- the destination arrayoffset- the offset into the destination arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source memory segment to the destination array, starting atoffset.- Parameters:
src- the source memory segmentdst- the destination arrayoffset- the offset into the destination arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source memory segment to the destination array, starting atoffset.- Parameters:
src- the source memory segmentdst- the destination arrayoffset- the offset into the destination arraysize- the number of elements to copy
-
memCopy
Copiessizeelements from the source memory segment to the destination array, starting atoffset.- Parameters:
src- the source memory segmentdst- the destination arrayoffset- the offset into the destination arraysize- the number of elements to copy
-
memGetBoolean
-
memGetByte
-
memGetChar
-
memGetCharAtIndex
-
memGetCharUnaligned
-
memGetCharUnalignedAtIndex
-
memGetShort
-
memGetShortAtIndex
-
memGetShortUnaligned
-
memGetShortUnalignedAtIndex
-
memGetInt
-
memGetIntAtIndex
-
memGetIntUnaligned
-
memGetIntUnalignedAtIndex
-
memGetLong
-
memGetLongAtIndex
-
memGetLongUnaligned
-
memGetLongUnalignedAtIndex
-
memGetFloat
-
memGetFloatAtIndex
-
memGetFloatUnaligned
-
memGetFloatUnalignedAtIndex
-
memGetDouble
-
memGetDoubleAtIndex
-
memGetDoubleUnaligned
-
memGetDoubleUnalignedAtIndex
-
memGetCLong
-
memGetCLongAtIndex
-
memGetCLongUnaligned
-
memGetCLongUnalignedAtIndex
-
memGetAddress
-
memGetAddressAtIndex
-
memGetAddressUnaligned
-
memGetAddressUnalignedAtIndex
-
memPutBoolean
-
memPutByte
-
memPutChar
-
memPutCharAtIndex
-
memPutCharUnaligned
-
memPutCharUnalignedAtIndex
-
memPutShort
-
memPutShortAtIndex
-
memPutShortUnaligned
-
memPutShortUnalignedAtIndex
-
memPutInt
-
memPutIntAtIndex
-
memPutIntUnaligned
-
memPutIntUnalignedAtIndex
-
memPutLong
-
memPutLongAtIndex
-
memPutLongUnaligned
-
memPutLongUnalignedAtIndex
-
memPutFloat
-
memPutFloatAtIndex
-
memPutFloatUnaligned
-
memPutFloatUnalignedAtIndex
-
memPutDouble
-
memPutDoubleAtIndex
-
memPutDoubleUnaligned
-
memPutDoubleUnalignedAtIndex
-
memPutCLong
-
memPutCLongAtIndex
-
memPutCLongUnaligned
-
memPutCLongUnalignedAtIndex
-
memPutAddress
-
memPutAddressAtIndex
-
memPutAddressUnaligned
-
memPutAddressUnalignedAtIndex
-