class BinData::IO::Read
def read(n = nil)
def read(n = nil) str = read_raw(buffer_limited_n(n)) if n raise EOFError, "End of file reached" if str.nil? raise IOError, "data truncated" if str.size < n end str end
def read(n = nil) str = read_raw(buffer_limited_n(n)) if n raise EOFError, "End of file reached" if str.nil? raise IOError, "data truncated" if str.size < n end str end