Re: How to use GIOChannel to write binary data
- From: Tor Lillqvist <tml iki fi>
- To: Robert Pearce <rob bdt-home demon co uk>
- Cc: gtk-list gnome org
- Subject: Re: How to use GIOChannel to write binary data
- Date: Sun, 7 Feb 2010 14:39:54 +0200
> Because you don't need one. Binary data is merely a stream of 8-bit chars with no encoding.
In general, the type name "char" is mostly misleading and
counter-productive these days. People new to C should get used to just
thinking "byte" when they see "char", either by itself or as part of
some API name like "g_io_channel_write_chars". A "character" is a
completely different and much more complex thing than a "char".
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]