Class: Libpng::StandardDecoder::ReadState
- Inherits:
-
Struct
- Object
- Struct
- Libpng::StandardDecoder::ReadState
- Defined in:
- lib/libpng/standard_decoder.rb
Overview
Read-state accumulator. The libpng read callback reads PNG bytes out of this; the offset advances with each call. Wrapping the state in a small struct keeps the FFI::Function closure capture explicit (and the closure itself becomes trivially shareable because the struct's instance vars are not mutated outside the callback).
Instance Attribute Summary collapse
-
#bytes ⇒ Object
Returns the value of attribute bytes.
-
#offset ⇒ Object
Returns the value of attribute offset.
Instance Attribute Details
#bytes ⇒ Object
Returns the value of attribute bytes
42 43 44 |
# File 'lib/libpng/standard_decoder.rb', line 42 def bytes @bytes end |
#offset ⇒ Object
Returns the value of attribute offset
42 43 44 |
# File 'lib/libpng/standard_decoder.rb', line 42 def offset @offset end |