module BinData::IO
A wrapper around an IO object. The wrapper provides a consistent interface for BinData objects to use when accessing the IO.
Public Class Methods
create_string_io(str = "")
click to toggle source
Creates a StringIO around str
.
# File lib/bindata/io.rb, line 215 def self.create_string_io(str = "") StringIO.new(str.dup.force_encoding(Encoding::BINARY)) end