fun readBytes(buffer: ByteArray, size: Int, offset: Int): Int
Reads bytes size from the stream into the buffer starting from offset.
Return actual read bytes count.