2020-05-15

Java SequenceLayout Example

SequenceLayout

A SequenceLayout denotes the repetition of a given layout. In other words, this can be thought of as a sequence of elements similar to an array with the defined element layout.

For example, we can create a sequence layout for 25 elements of 64 bits each:

SequenceLayout sequenceLayout = MemoryLayout.ofSequence(25,
  MemoryLayout.ofValueBits(64, ByteOrder.nativeOrder()));

No comments:

Post a Comment