TruncatedDataError is raised when IO#readbytes fails to read enough data.