Class: Wiris::Base64

Inherits:
Object
  • Object
show all
Defined in:
lib/src-generic/Base64.rb

Instance Method Summary collapse

Constructor Details

#initializeBase64

Returns a new instance of Base64.



5
6
# File 'lib/src-generic/Base64.rb', line 5

def initialize()
end

Instance Method Details

#decodeBytes(b) ⇒ Object



12
13
# File 'lib/src-generic/Base64.rb', line 12

def decodeBytes(b)
end

#encodeBytes(b) ⇒ Object



7
8
9
10
# File 'lib/src-generic/Base64.rb', line 7

def encodeBytes(b)
	#Using '::' to call Base64 module out of the Wiris module scope.
	return Bytes.ofString(::Base64::strict_encode64(b.toString()))
end