Base64#

class pyopenms.Base64#

Bases: object

Cython implementation of _Base64

Original C++ documentation is available here

__init__()#

Overload:

__init__(self) None

Class to encode and decode Base64, it supports two precisions 32 bit (float) and 64 bit (double).

Overload:

__init__(self, in_0: Base64) None

Methods

__init__

Overload:

decode32

Cython signature: void decode32(const String & in_, ByteOrder from_byte_order, libcpp_vector[float] & out, bool zlib_compression)

decode64

Cython signature: void decode64(const String & in_, ByteOrder from_byte_order, libcpp_vector[double] & out, bool zlib_compression)

decodeIntegers(self, in_, from_byte_order, ...)

Decodes a Base64 string to a vector of integer numbers

decodeStrings(self, in_, out, zlib_compression)

Decodes a Base64 string to a vector of (null-terminated) strings

encode32

Cython signature: void encode32(libcpp_vector[float] & in_, ByteOrder to_byte_order, String & out, bool zlib_compression)

encode64

Cython signature: void encode64(libcpp_vector[double] & in_, ByteOrder to_byte_order, String & out, bool zlib_compression)

encodeIntegers(self, in_, to_byte_order, ...)

Encodes a vector of integer point numbers to a Base64 string

encodeStrings(self, in_, out, zlib_compression)

Encodes a vector of strings to a Base64 string

ByteOrder#

alias of __ByteOrder

decode32()#

Cython signature: void decode32(const String & in_, ByteOrder from_byte_order, libcpp_vector[float] & out, bool zlib_compression)

decode64()#

Cython signature: void decode64(const String & in_, ByteOrder from_byte_order, libcpp_vector[double] & out, bool zlib_compression)

decodeIntegers(self, in_: bytes | str | String, from_byte_order: int, out: List[int], zlib_compression: bool) None#

Decodes a Base64 string to a vector of integer numbers

decodeStrings(self, in_: bytes | str | String, out: List[bytes], zlib_compression: bool) None#

Decodes a Base64 string to a vector of (null-terminated) strings

encode32()#

Cython signature: void encode32(libcpp_vector[float] & in_, ByteOrder to_byte_order, String & out, bool zlib_compression)

encode64()#

Cython signature: void encode64(libcpp_vector[double] & in_, ByteOrder to_byte_order, String & out, bool zlib_compression)

encodeIntegers(self, in_: List[int], to_byte_order: int, out: String, zlib_compression: bool) None#

Encodes a vector of integer point numbers to a Base64 string

encodeStrings(self, in_: List[bytes], out: String, zlib_compression: bool) None#

Encodes a vector of strings to a Base64 string