Method: String#byteslice

Defined in:
lib/rumai/ixp/message.rb

#byteslice(*args) ⇒ Object

Does the same thing as String#slice but operates on bytes instead of characters.



703
704
705
# File 'lib/rumai/ixp/message.rb', line 703

def byteslice(*args)
  unpack('C*').slice(*args).pack('C*')
end