 
     internal func readUInt8() throws -> UInt8 {
         let bufferSize = 1
-        let length = try readStream(&buffer, maxLength: bufferSize)
+        let length = try readStream(buffer, maxLength: bufferSize)
         if length < 0 {
             throw CSVError.streamErrorHasOccurred(error: stream.streamError!)
         }

        if closeOnDeinit && stream.streamStatus != .closed {
            stream.close()
        }
    }

    internal var hasBytesAvailable: Bool {

            throw CSVError.cannotOpenFile
        }

        let readCount = stream.read(tempBuffer, maxLength: tempBufferSize)
        if let (e, l) = readBOM(buffer: tempBuffer, length: readCount) {
            if endian != .unknown && endian != e {
                throw CSVError.stringEndianMismatch
            }
