Interface Mapping.Byte
- All Superinterfaces:
DataMapping<ValueLayout.OfByte>, IntegerMapping<ValueLayout.OfByte>, Mapping<ValueLayout.OfByte>, PrimitiveMapping<ValueLayout.OfByte>
- Enclosing interface:
Mapping<L extends MemoryLayout>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Mapping
Mapping.Boolean, Mapping.Byte, Mapping.Char, Mapping.CLong, Mapping.Double, Mapping.Float, Mapping.Int, Mapping.Long, Mapping.Opaque, Mapping.Pointer, Mapping.Sequence, Mapping.Short, Mapping.Size, Mapping.Struct, Mapping.Union -
Method Summary
Modifier and TypeMethodDescriptiondefault Mapping.Bytecconst()Creates a new instance of this mapping with the CconstqualifierbytefromInt(int value) default byteget(MemorySegment segment, long offset) default intget32(MemorySegment segment, long offset) default intget32AtIndex(MemorySegment segment, long index) default bytegetAtIndex(MemorySegment segment, long index) default Mapping.Byteset(MemorySegment segment, long offset, byte value) default Mapping.Byteset(MemorySegment segment, long offset, int value) default Mapping.BytesetAtIndex(MemorySegment segment, long index, byte value) default Mapping.BytesetAtIndex(MemorySegment segment, long index, int value) inttoInt(byte value) default Mapping.ByteCreates a new instance of this mapping with the specified type name.default Mapping.BytewithByteAlignment(long byteAlignment) Returns a copy of this mapping with the specified byte alignment.Methods inherited from interface DataMapping
allocateSegment, allocateSegment, allocateSegment, allocateSegment, array, mallocSegment, mallocSegmentMethods inherited from interface IntegerMapping
signed
-
Method Details
-
withByteAlignment
Description copied from interface:DataMappingReturns a copy of this mapping with the specified byte alignment.- Specified by:
withByteAlignmentin interfaceDataMapping<ValueLayout.OfByte>- Specified by:
withByteAlignmentin interfacePrimitiveMapping<ValueLayout.OfByte>- Parameters:
byteAlignment- the new byte alignment- Returns:
- the new mapping
-
typedef
Description copied from interface:MappingCreates a new instance of this mapping with the specified type name.- Specified by:
typedefin interfaceIntegerMapping<ValueLayout.OfByte>- Specified by:
typedefin interfaceMapping<ValueLayout.OfByte>- Specified by:
typedefin interfacePrimitiveMapping<ValueLayout.OfByte>- Returns:
- the new mapping
-
cconst
Description copied from interface:MappingCreates a new instance of this mapping with the Cconstqualifier- Specified by:
cconstin interfaceMapping<ValueLayout.OfByte>- Returns:
- the new mapping
-
get
-
getAtIndex
-
set
-
setAtIndex
-
toInt
int toInt(byte value) -
fromInt
byte fromInt(int value) -
get32
-
get32AtIndex
-
set
-
setAtIndex
-