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;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • INGESTED, CONSUMED, PRODUCED

        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()
        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.
      • createSafe

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

        public static ZSTDFrameProgression mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new ZSTDFrameProgression instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static ZSTDFrameProgression callocStack​(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
      • mallocStack

        public static ZSTDFrameProgression.Buffer mallocStack​(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
      • callocStack

        public static ZSTDFrameProgression.Buffer callocStack​(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().