Module: SimplyAES::Format::Bytes

Extended by:
Bytes
Includes:
SimplyAES::Format
Included in:
Bytes
Defined in:
lib/simply-aes/format.rb

Overview

The default implementation of SimplyAES::Format that reads and emits unformatted byte strings.

Instance Method Summary collapse

Methods included from SimplyAES::Format

[], []=, included

Instance Method Details

#dump(bytestring) ⇒ Object



92
93
94
# File 'lib/simply-aes/format.rb', line 92

def dump(bytestring)
  bytestring.dup
end

#load(formatted) ⇒ Object



88
89
90
# File 'lib/simply-aes/format.rb', line 88

def load(formatted)
  formatted.dup
end