Class OpusFileCallbacks

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class OpusFileCallbacks extends Struct<OpusFileCallbacks> implements NativeResource

 struct OpusFileCallbacks {
     {@link OPReadFuncI op_read_func} read;
     {@link OPSeekFuncI op_seek_func} seek;
     {@link OPTellFuncI op_tell_func} tell;
     {@link OPCloseFuncI op_close_func} close;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int READ
      The struct member offsets.
    • SEEK

      public static final int SEEK
      The struct member offsets.
    • TELL

      public static final int TELL
      The struct member offsets.
    • CLOSE

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

    • OpusFileCallbacks

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