Package org.lwjgl.stb

Class STBIIOCallbacks

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class STBIIOCallbacks extends Struct<STBIIOCallbacks> implements NativeResource

 struct stbi_io_callbacks {
     int (* read) (void * user, char * data, int size);
     void (* skip) (void * user, int n);
     int (* eof) (void * user);
 }
  • 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.
    • SKIP

      public static final int SKIP
      The struct member offsets.
    • EOF

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

    • STBIIOCallbacks

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