Changed types of readBuf methods