Re: How to use GIOChannel to write binary data



> 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]