Class ZSTDFrameProgression

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ZSTDFrameProgression extends Struct<ZSTDFrameProgression> implements NativeResource

 struct ZSTD_frameProgression {
     unsigned long long ingested;
     unsigned long long consumed;
     unsigned long long produced;
     unsigned long long flushed;
     unsigned int currentJobID;
     unsigned int nbActiveWorkers;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int INGESTED
      The struct member offsets.
    • CONSUMED

      public static final int CONSUMED
      The struct member offsets.
    • PRODUCED

      public static final int PRODUCED
      The struct member offsets.
    • FLUSHED

      public static final int FLUSHED
      The struct member offsets.
    • CURRENTJOBID

      public static final int CURRENTJOBID
      The struct member offsets.
    • NBACTIVEWORKERS

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

    • ZSTDFrameProgression

      public ZSTDFrameProgression(ByteBuffer container)
      Creates a ZSTDFrameProgression 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

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<ZSTDFrameProgression>
    • ingested

      public long ingested()
      Returns:
      the value of the ingested field.
    • consumed

      public long consumed()
      Returns:
      the value of the consumed field.
    • produced

      public long produced()
      Returns:
      the value of the produced field.
    • flushed

      public long flushed()
      Returns:
      the value of the flushed field.
    • currentJobID

      public int currentJobID()
      Returns:
      the value of the currentJobID field.
    • nbActiveWorkers

      public int nbActiveWorkers()
      Returns:
      the value of the nbActiveWorkers field.
    • malloc

      public static ZSTDFrameProgression malloc()
      Returns a new ZSTDFrameProgression instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static ZSTDFrameProgression calloc()
      Returns a new ZSTDFrameProgression instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static ZSTDFrameProgression create()
      Returns a new ZSTDFrameProgression instance allocated with BufferUtils.
    • create

      public static ZSTDFrameProgression create(long address)
      Returns a new ZSTDFrameProgression instance for the specified memory address.
    • createSafe

      public static @Nullable ZSTDFrameProgression createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static ZSTDFrameProgression.Buffer malloc(int capacity)
      Returns a new ZSTDFrameProgression.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static ZSTDFrameProgression.Buffer calloc(int capacity)
      Returns a new ZSTDFrameProgression.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static ZSTDFrameProgression.Buffer create(int capacity)
      Returns a new ZSTDFrameProgression.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static ZSTDFrameProgression.Buffer create(long address, int capacity)
      Create a ZSTDFrameProgression.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable ZSTDFrameProgression.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static ZSTDFrameProgression malloc(MemoryStack stack)
      Returns a new ZSTDFrameProgression instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static ZSTDFrameProgression calloc(MemoryStack stack)
      Returns a new ZSTDFrameProgression instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static ZSTDFrameProgression.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new ZSTDFrameProgression.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static ZSTDFrameProgression.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new ZSTDFrameProgression.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ningested

      public static long ningested(long struct)
      Unsafe version of ingested().
    • nconsumed

      public static long nconsumed(long struct)
      Unsafe version of consumed().
    • nproduced

      public static long nproduced(long struct)
      Unsafe version of produced().
    • nflushed

      public static long nflushed(long struct)
      Unsafe version of flushed().
    • ncurrentJobID

      public static int ncurrentJobID(long struct)
      Unsafe version of currentJobID().
    • nnbActiveWorkers

      public static int nnbActiveWorkers(long struct)
      Unsafe version of nbActiveWorkers().