Interface Data.ByteArrayView

All Superinterfaces:
Supplier<byte[]>
Enclosing class:
Data<T>

public static interface Data.ByteArrayView extends Supplier<byte[]>
Read-only view of a byte-array range for serializers that can consume a slice directly.

The backing array must not be modified. Calling Supplier.get() retains the ordinary byte[] contract and may materialize an independent array.

  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
     
    int
     
    int
     

    Methods inherited from interface Supplier

    get
  • Method Details

    • array

      byte[] array()
    • offset

      int offset()
    • length

      int length()