Module java.base
Package java.lang.foreign

# Interface MemorySegment

=
public abstract sealed interface MemorySegment
permits jdk.internal.foreign.AbstractMemorySegmentImpl

## Nested Types

- = Scope

## Fields

- =
  public static final java.lang.foreign.MemorySegment NULL

## Methods

- =
  public abstract long address()
- =
  public abstract java.nio.ByteBuffer asByteBuffer()
- =
  public abstract java.util.Optional<java.lang.foreign.MemorySegment> asOverlappingSlice(java.lang.foreign.MemorySegment arg0)
- =
  public abstract java.lang.foreign.MemorySegment asReadOnly()
- =
  public abstract java.lang.foreign.MemorySegment asSlice(long arg0)
- =
  public abstract java.lang.foreign.MemorySegment asSlice(long arg0, long arg1)
- =
  public abstract java.lang.foreign.MemorySegment asSlice(long arg0, long arg1, long arg2)
- =
  public abstract java.lang.foreign.MemorySegment asSlice(long arg0, java.lang.foreign.MemoryLayout arg1)
- =
  public abstract long byteSize()
- =
  public static void copy(java.lang.Object arg0, int arg1, java.lang.foreign.MemorySegment arg2, java.lang.foreign.ValueLayout arg3, long arg4, int arg5)
- =
  public static void copy(java.lang.foreign.MemorySegment arg0, long arg1, java.lang.foreign.MemorySegment arg2, long arg3, long arg4)
- =
  public static void copy(java.lang.foreign.MemorySegment arg0, java.lang.foreign.ValueLayout arg1, long arg2, java.lang.Object arg3, int arg4, int arg5)
- =
  public static void copy(java.lang.foreign.MemorySegment arg0, java.lang.foreign.ValueLayout arg1, long arg2, java.lang.foreign.MemorySegment arg3, java.lang.foreign.ValueLayout arg4, long arg5, long arg6)
- =
  public abstract java.lang.foreign.MemorySegment copyFrom(java.lang.foreign.MemorySegment arg0)
- =
  public abstract java.util.stream.Stream<java.lang.foreign.MemorySegment> elements(java.lang.foreign.MemoryLayout arg0)
- =
  public abstract boolean equals(java.lang.Object arg0)
- =
  public abstract java.lang.foreign.MemorySegment fill(byte arg0)
- =
  public abstract void force()
- =
  public abstract java.lang.foreign.MemorySegment get(java.lang.foreign.AddressLayout arg0, long arg1)
- =
  public abstract boolean get(java.lang.foreign.ValueLayout.OfBoolean arg0, long arg1)
- =
  public abstract byte get(java.lang.foreign.ValueLayout.OfByte arg0, long arg1)
- =
  public abstract char get(java.lang.foreign.ValueLayout.OfChar arg0, long arg1)
- =
  public abstract double get(java.lang.foreign.ValueLayout.OfDouble arg0, long arg1)
- =
  public abstract float get(java.lang.foreign.ValueLayout.OfFloat arg0, long arg1)
- =
  public abstract int get(java.lang.foreign.ValueLayout.OfInt arg0, long arg1)
- =
  public abstract long get(java.lang.foreign.ValueLayout.OfLong arg0, long arg1)
- =
  public abstract short get(java.lang.foreign.ValueLayout.OfShort arg0, long arg1)
- =
  public abstract java.lang.foreign.MemorySegment getAtIndex(java.lang.foreign.AddressLayout arg0, long arg1)
- =
  public abstract boolean getAtIndex(java.lang.foreign.ValueLayout.OfBoolean arg0, long arg1)
- =
  public abstract byte getAtIndex(java.lang.foreign.ValueLayout.OfByte arg0, long arg1)
- =
  public abstract char getAtIndex(java.lang.foreign.ValueLayout.OfChar arg0, long arg1)
- =
  public abstract double getAtIndex(java.lang.foreign.ValueLayout.OfDouble arg0, long arg1)
- =
  public abstract float getAtIndex(java.lang.foreign.ValueLayout.OfFloat arg0, long arg1)
- =
  public abstract int getAtIndex(java.lang.foreign.ValueLayout.OfInt arg0, long arg1)
- =
  public abstract long getAtIndex(java.lang.foreign.ValueLayout.OfLong arg0, long arg1)
- =
  public abstract short getAtIndex(java.lang.foreign.ValueLayout.OfShort arg0, long arg1)
- =
  public abstract java.lang.String getString(long arg0)
- =
  public abstract java.lang.String getString(long arg0, java.nio.charset.Charset arg1)
- =
  public abstract int hashCode()
- =
  public abstract java.util.Optional<java.lang.Object> heapBase()
- =
  public abstract boolean isAccessibleBy(java.lang.Thread arg0)
- =
  public abstract boolean isLoaded()
- =
  public abstract boolean isMapped()
- =
  public abstract boolean isNative()
- =
  public abstract boolean isReadOnly()
- =
  public abstract void load()
- =
  public abstract long maxByteAlignment()
- =
  public abstract long mismatch(java.lang.foreign.MemorySegment arg0)
- =
  public static long mismatch(java.lang.foreign.MemorySegment arg0, long arg1, long arg2, java.lang.foreign.MemorySegment arg3, long arg4, long arg5)
- =
  public static java.lang.foreign.MemorySegment ofAddress(long arg0)
- =
  public static java.lang.foreign.MemorySegment ofArray(byte[] arg0)
- =
  public static java.lang.foreign.MemorySegment ofArray(short[] arg0)
- =
  public static java.lang.foreign.MemorySegment ofArray(int[] arg0)
- =
  public static java.lang.foreign.MemorySegment ofArray(long[] arg0)
- =
  public static java.lang.foreign.MemorySegment ofArray(char[] arg0)
- =
  public static java.lang.foreign.MemorySegment ofArray(float[] arg0)
- =
  public static java.lang.foreign.MemorySegment ofArray(double[] arg0)
- =
  public static java.lang.foreign.MemorySegment ofBuffer(java.nio.Buffer arg0)
- =
  public abstract java.lang.foreign.MemorySegment reinterpret(long arg0)
- =
  public abstract java.lang.foreign.MemorySegment reinterpret(long arg0, java.lang.foreign.Arena arg1, java.util.function.Consumer<java.lang.foreign.MemorySegment> arg2)
- =
  public abstract java.lang.foreign.MemorySegment reinterpret(java.lang.foreign.Arena arg0, java.util.function.Consumer<java.lang.foreign.MemorySegment> arg1)
- =
  public abstract java.lang.foreign.MemorySegment.Scope scope()
- =
  public abstract void set(java.lang.foreign.AddressLayout arg0, long arg1, java.lang.foreign.MemorySegment arg2)
- =
  public abstract void set(java.lang.foreign.ValueLayout.OfBoolean arg0, long arg1, boolean arg2)
- =
  public abstract void set(java.lang.foreign.ValueLayout.OfByte arg0, long arg1, byte arg2)
- =
  public abstract void set(java.lang.foreign.ValueLayout.OfChar arg0, long arg1, char arg2)
- =
  public abstract void set(java.lang.foreign.ValueLayout.OfDouble arg0, long arg1, double arg2)
- =
  public abstract void set(java.lang.foreign.ValueLayout.OfFloat arg0, long arg1, float arg2)
- =
  public abstract void set(java.lang.foreign.ValueLayout.OfInt arg0, long arg1, int arg2)
- =
  public abstract void set(java.lang.foreign.ValueLayout.OfLong arg0, long arg1, long arg2)
- =
  public abstract void set(java.lang.foreign.ValueLayout.OfShort arg0, long arg1, short arg2)
- =
  public abstract void setAtIndex(java.lang.foreign.AddressLayout arg0, long arg1, java.lang.foreign.MemorySegment arg2)
- =
  public abstract void setAtIndex(java.lang.foreign.ValueLayout.OfBoolean arg0, long arg1, boolean arg2)
- =
  public abstract void setAtIndex(java.lang.foreign.ValueLayout.OfByte arg0, long arg1, byte arg2)
- =
  public abstract void setAtIndex(java.lang.foreign.ValueLayout.OfChar arg0, long arg1, char arg2)
- =
  public abstract void setAtIndex(java.lang.foreign.ValueLayout.OfDouble arg0, long arg1, double arg2)
- =
  public abstract void setAtIndex(java.lang.foreign.ValueLayout.OfFloat arg0, long arg1, float arg2)
- =
  public abstract void setAtIndex(java.lang.foreign.ValueLayout.OfInt arg0, long arg1, int arg2)
- =
  public abstract void setAtIndex(java.lang.foreign.ValueLayout.OfLong arg0, long arg1, long arg2)
- =
  public abstract void setAtIndex(java.lang.foreign.ValueLayout.OfShort arg0, long arg1, short arg2)
- =
  public abstract void setString(long arg0, java.lang.String arg1)
- =
  public abstract void setString(long arg0, java.lang.String arg1, java.nio.charset.Charset arg2)
- =
  public abstract java.util.Spliterator<java.lang.foreign.MemorySegment> spliterator(java.lang.foreign.MemoryLayout arg0)
- =
  public abstract byte[] toArray(java.lang.foreign.ValueLayout.OfByte arg0)
- =
  public abstract char[] toArray(java.lang.foreign.ValueLayout.OfChar arg0)
- =
  public abstract double[] toArray(java.lang.foreign.ValueLayout.OfDouble arg0)
- =
  public abstract float[] toArray(java.lang.foreign.ValueLayout.OfFloat arg0)
- =
  public abstract int[] toArray(java.lang.foreign.ValueLayout.OfInt arg0)
- =
  public abstract long[] toArray(java.lang.foreign.ValueLayout.OfLong arg0)
- =
  public abstract short[] toArray(java.lang.foreign.ValueLayout.OfShort arg0)
- =
  public abstract void unload()

## Summary

No differences.