Class ZSTDFrameProgression

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class ZSTDFrameProgression
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • INGESTED, CONSUMED, PRODUCED, FLUSHED, CURRENTJOBID, NBACTIVEWORKERS

        The struct member offsets.
    • Constructor Detail

      • ZSTDFrameProgression

        public ZSTDFrameProgression​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • ingested

        public long ingested()
        nb input bytes read and buffered
      • consumed

        public long consumed()
        nb input bytes actually compressed
      • produced

        public long produced()
        nb of compressed bytes generated and buffered
      • flushed

        public long flushed()
        nb of compressed bytes flushed: not provided; can be tracked from caller side
      • currentJobID

        public int currentJobID()
        mT only: latest started job nb
      • nbActiveWorkers

        public int nbActiveWorkers()
        mT only: nb of workers actively compressing at probe time
      • 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

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

        public static ZSTDFrameProgression malloc​(org.lwjgl.system.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​(org.lwjgl.system.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,
                                                         org.lwjgl.system.MemoryStack stack)
        Returns a new ZSTDFrameProgression.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static ZSTDFrameProgression.Buffer calloc​(int capacity,
                                                         org.lwjgl.system.MemoryStack stack)
        Returns a new ZSTDFrameProgression.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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().