* SUCH DAMAGE.
*
* $Format:commit %H$
+ * $Id$
*/
#include "d0_iobuf.h"
const unsigned char *inbuf;
unsigned char *outbuf;
size_t inpos, outpos, inbuflen, outbuflen;
- BOOL ok;
+ D0_BOOL ok;
};
d0_iobuf_t *d0_iobuf_open_read(const void *buf, size_t len)
return b;
}
-BOOL d0_iobuf_close(d0_iobuf_t *buf, size_t *len)
+D0_BOOL d0_iobuf_close(d0_iobuf_t *buf, size_t *len)
{
- BOOL r = buf->ok;
+ D0_BOOL r = buf->ok;
if(len)
*len = buf->outpos;
d0_free(buf);
return nreal;
}
-BOOL d0_iobuf_write_packet(d0_iobuf_t *buf, const void *s, size_t n)
+D0_BOOL d0_iobuf_write_packet(d0_iobuf_t *buf, const void *s, size_t n)
{
unsigned char c;
size_t nn = n;
return 1;
}
-BOOL d0_iobuf_read_packet(d0_iobuf_t *buf, void *s, size_t *np)
+D0_BOOL d0_iobuf_read_packet(d0_iobuf_t *buf, void *s, size_t *np)
{
unsigned char c;
size_t n = 0;
return 1;
}
-BOOL d0_iobuf_conv_base64_in(d0_iobuf_t *buf)
+D0_BOOL d0_iobuf_conv_base64_in(d0_iobuf_t *buf)
{
// compand the in-buffer
return 0;
out[3] = (bytes > 2) ? o3 : '=';
}
-BOOL d0_iobuf_conv_base64_out(d0_iobuf_t *buf)
+D0_BOOL d0_iobuf_conv_base64_out(d0_iobuf_t *buf)
{
size_t blocks, i;
// expand the out-buffer