comparison src/xs_support.h @ 953:b2caef664524

Add new helper functions xs_fread_str() and xs_fread_byte().
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 20 Nov 2012 21:26:25 +0200
parents abbf089b119d
children 3c2efa18c422
comparison
equal deleted inserted replaced
952:abbf089b119d 953:b2caef664524
126 off_t xs_fsize(XSFile *f); 126 off_t xs_fsize(XSFile *f);
127 #endif 127 #endif
128 128
129 guint16 xs_fread_be16(XSFile *); 129 guint16 xs_fread_be16(XSFile *);
130 guint32 xs_fread_be32(XSFile *); 130 guint32 xs_fread_be32(XSFile *);
131 gboolean xs_fread_str(XSFile *, void *, const size_t);
132 gboolean xs_fread_byte(XSFile *, guint8 *);
131 gboolean xs_fload_buffer(const gchar *filename, 133 gboolean xs_fload_buffer(const gchar *filename,
132 guint8 **pbuf, size_t *bufSize, const size_t maxSize, gboolean failMaxSize); 134 guint8 **pbuf, size_t *bufSize, const size_t maxSize, gboolean failMaxSize);
133 gboolean xs_fload_buffer_path(const gchar *ppath, const gchar *pfilename, 135 gboolean xs_fload_buffer_path(const gchar *ppath, const gchar *pfilename,
134 guint8 **pbuf, size_t *bufSize, const size_t maxSize, gboolean failMaxSize); 136 guint8 **pbuf, size_t *bufSize, const size_t maxSize, gboolean failMaxSize);
135 137