@@ -57,11 +57,11 @@ * \param length The length of the data that should be read at most. * The buffer MUST be at least this big! * \return The number of bytes read */ - (size_t)readNBytes: (size_t)size - intoBuffer: (char*)buffer; + intoBuffer: (void*)buffer; /** * Reads exactly length bytes from the stream into a buffer. Unlike * readNBytes:intoBuffer:, this method does not return when less than the * specified length has been read - instead, it waits until it got exactly length @@ -73,11 +73,11 @@ * \param buffer The buffer into which the data is read * \param length The length of the data that should be read. * The buffer MUST be EXACTLY this big! */ - (void)readExactlyNBytes: (size_t)length - intoBuffer: (char*)buffer; + intoBuffer: (void*)buffer; /** * Reads a uint8_t from the stream. * * WARNING: Only call this when you know that enough data is available! @@ -280,11 +280,11 @@ * \param buffer The buffer from which the data is written to the stream * \param length The length of the data that should be written * \return The number of bytes written */ - (size_t)writeNBytes: (size_t)length - fromBuffer: (const char*)buffer; + fromBuffer: (const void*)buffer; /** * Writes a uint8_t into the stream. * * \param int8 A uint8_t