Class: BitGirder::Io::BinaryIo
- Inherits:
-
BitGirderClass
- Object
- BitGirderClass
- BitGirder::Io::BinaryIo
- Defined in:
- lib/bitgirder/io.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#conv ⇒ Object
readonly
Returns the value of attribute conv.
-
#pos ⇒ Object
readonly
pos returns the zero-indexed position of the next byte that would be read, in the case of a reader, or the number of bytes that have been written in the case of a writer.
Instance Method Summary collapse
Instance Attribute Details
#conv ⇒ Object (readonly)
Returns the value of attribute conv.
740 741 742 |
# File 'lib/bitgirder/io.rb', line 740 def conv @conv end |
#pos ⇒ Object (readonly)
pos returns the zero-indexed position of the next byte that would be read, in the case of a reader, or the number of bytes that have been written in the case of a writer. This value is only valid as long as no exceptions have been encountered in any of the read|write methods and all access to the underlying io object has been through this instance the read* methods
747 748 749 |
# File 'lib/bitgirder/io.rb', line 747 def pos @pos end |
Instance Method Details
#close ⇒ Object
750 751 752 |
# File 'lib/bitgirder/io.rb', line 750 def close @io.close if @io.respond_to?( :close ) end |