Class ZDICTFastCoverParams

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ZDICTFastCoverParams extends Struct<ZDICTFastCoverParams> implements NativeResource

 struct ZDICT_fastCover_params_t {
     unsigned k;
     unsigned d;
     unsigned f;
     unsigned steps;
     unsigned nbThreads;
     double splitPoint;
     unsigned accel;
     ZDICT_params_t zParams;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int K
      The struct member offsets.
    • D

      public static final int D
      The struct member offsets.
    • F

      public static final int F
      The struct member offsets.
    • STEPS

      public static final int STEPS
      The struct member offsets.
    • NBTHREADS

      public static final int NBTHREADS
      The struct member offsets.
    • SPLITPOINT

      public static final int SPLITPOINT
      The struct member offsets.
    • ACCEL

      public static final int ACCEL
      The struct member offsets.
    • ZPARAMS

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

    • ZDICTFastCoverParams

      public ZDICTFastCoverParams(ByteBuffer container)
      Creates a ZDICTFastCoverParams 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<ZDICTFastCoverParams>
    • k

      public int k()
      Returns:
      the value of the k field.
    • d

      public int d()
      Returns:
      the value of the d field.
    • f

      public int f()
      Returns:
      the value of the f field.
    • steps

      public int steps()
      Returns:
      the value of the steps field.
    • nbThreads

      public int nbThreads()
      Returns:
      the value of the nbThreads field.
    • splitPoint

      public double splitPoint()
      Returns:
      the value of the splitPoint field.
    • accel

      public int accel()
      Returns:
      the value of the accel field.
    • zParams

      public ZDICTParams zParams()
      Returns:
      a ZDICTParams view of the zParams field.
    • k

      public ZDICTFastCoverParams k(int value)
      Sets the specified value to the k field.
    • d

      public ZDICTFastCoverParams d(int value)
      Sets the specified value to the d field.
    • f

      public ZDICTFastCoverParams f(int value)
      Sets the specified value to the f field.
    • steps

      public ZDICTFastCoverParams steps(int value)
      Sets the specified value to the steps field.
    • nbThreads

      public ZDICTFastCoverParams nbThreads(int value)
      Sets the specified value to the nbThreads field.
    • splitPoint

      public ZDICTFastCoverParams splitPoint(double value)
      Sets the specified value to the splitPoint field.
    • accel

      public ZDICTFastCoverParams accel(int value)
      Sets the specified value to the accel field.
    • zParams

      public ZDICTFastCoverParams zParams(ZDICTParams value)
      Copies the specified ZDICTParams to the zParams field.
    • zParams

      public ZDICTFastCoverParams zParams(Consumer<ZDICTParams> consumer)
      Passes the zParams field to the specified Consumer.
    • set

      public ZDICTFastCoverParams set(int k, int d, int f, int steps, int nbThreads, double splitPoint, int accel, ZDICTParams zParams)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static ZDICTFastCoverParams.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new ZDICTFastCoverParams.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
    • nk

      public static int nk(long struct)
      Unsafe version of k().
    • nd

      public static int nd(long struct)
      Unsafe version of d().
    • nf

      public static int nf(long struct)
      Unsafe version of f().
    • nsteps

      public static int nsteps(long struct)
      Unsafe version of steps().
    • nnbThreads

      public static int nnbThreads(long struct)
      Unsafe version of nbThreads().
    • nsplitPoint

      public static double nsplitPoint(long struct)
      Unsafe version of splitPoint().
    • naccel

      public static int naccel(long struct)
      Unsafe version of accel().
    • nzParams

      public static ZDICTParams nzParams(long struct)
      Unsafe version of zParams().
    • nk

      public static void nk(long struct, int value)
      Unsafe version of k.
    • nd

      public static void nd(long struct, int value)
      Unsafe version of d.
    • nf

      public static void nf(long struct, int value)
      Unsafe version of f.
    • nsteps

      public static void nsteps(long struct, int value)
      Unsafe version of steps.
    • nnbThreads

      public static void nnbThreads(long struct, int value)
      Unsafe version of nbThreads.
    • nsplitPoint

      public static void nsplitPoint(long struct, double value)
      Unsafe version of splitPoint.
    • naccel

      public static void naccel(long struct, int value)
      Unsafe version of accel.
    • nzParams

      public static void nzParams(long struct, ZDICTParams value)
      Unsafe version of zParams.