Class ZSTDFrameHeader

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ZSTDFrameHeader extends Struct<ZSTDFrameHeader> implements NativeResource

 struct ZSTD_FrameHeader {
     unsigned long long frameContentSize;
     unsigned long long windowSize;
     unsigned int blockSizeMax;
     ZSTD_FrameType_e frameType;
     unsigned int headerSize;
     unsigned int dictID;
     unsigned int checksumFlag;
     unsigned _reserved1;
     unsigned _reserved2;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • FRAMECONTENTSIZE

      public static final int FRAMECONTENTSIZE
      The struct member offsets.
    • WINDOWSIZE

      public static final int WINDOWSIZE
      The struct member offsets.
    • BLOCKSIZEMAX

      public static final int BLOCKSIZEMAX
      The struct member offsets.
    • FRAMETYPE

      public static final int FRAMETYPE
      The struct member offsets.
    • HEADERSIZE

      public static final int HEADERSIZE
      The struct member offsets.
    • DICTID

      public static final int DICTID
      The struct member offsets.
    • CHECKSUMFLAG

      public static final int CHECKSUMFLAG
      The struct member offsets.
    • _RESERVED1

      public static final int _RESERVED1
      The struct member offsets.
    • _RESERVED2

      public static final int _RESERVED2
      The struct member offsets.
  • Constructor Details

    • ZSTDFrameHeader

      public ZSTDFrameHeader(ByteBuffer container)
      Creates a ZSTDFrameHeader instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details