Method: Zstd::Aux.io_read
- Defined in:
- lib/extzstd.rb
.io_read(io, size, buf) ⇒ Object
278 279 280 281 282 |
# File 'lib/extzstd.rb', line 278 def self.io_read(io, size, buf) raise Error, "encounted EOF (read error)" unless io.read(size, buf) raise Error, "read size too small (read error)" unless buf.bytesize == size buf end |