13 #ifndef __UT_BitStream__
14 #define __UT_BitStream__
37 unsigned int *
getBuf()
const {
return myBuf; }
38 void setBuf(
unsigned int *
buf,
int len);
48 unsigned uread(
int bits);
54 int seek(
int nbits,
int whence = 0);
69 void loadFromHex(
const char *
hex);
77 void loadFrom6Bit(
const char *
data);
87 void loadFromByte(
const char *
data);
92 void loadFromByte(
const char *
data,
int nwords);
93 int saveToByte(
unsigned char *
data,
int nwords,
101 int loadFromPenta(
const char *penta,
UT_IntArray &errors);
108 int loadPenta(
const char *penta);
109 int padTo(
int nbits,
int max,
int off,
int &savelen);
112 myBitLength = savelen;
GLenum GLuint GLenum GLsizei const GLchar * buf
**But if you need a result
unsigned int * getBuf() const
void read(T &in, bool &v)
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
void write(T &out, bool v)