37#ifndef TIF_BYTECURSOR_H
38#define TIF_BYTECURSOR_H
94 if (n < 0 || n > dst->
left)
118 if (n < 0 || n > dst->
left || n > src->
left)
static int _TIFFByteCursorFill(TIFFByteCursor *dst, uint8_t value, tmsize_t n)
Write n copies of value to a cursor.
static int _TIFFByteCursorCopy(TIFFByteCursor *dst, TIFFByteCursor *src, tmsize_t n)
Move n bytes from src to dst.
static int _TIFFByteCursorGetU8(TIFFByteCursor *c, uint8_t *out)
Read one byte from a cursor.
void _TIFFmemset(void *p, int v, tmsize_t c)
Fill a byte range with one repeated byte.
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
Copy a non-overlapping byte range.
TIFF_SSIZE_T tmsize_t
Represent a signed memory or I/O size in bytes.
Track a borrowed byte range as a pointer and a remaining count.
tmsize_t left
Number of bytes remaining from p.
uint8_t * p
Next byte to read or write.
Declare private library state, callbacks, and implementation helpers.