class Mail::Encodings::Identity

Overview

Identity encodings do no encoding/decoding and have a fixed cost: 1 byte in -> 1 byte out.

Direct Known Subclasses

Defined in:

mail/encodings/identity.cr

Class Method Summary

Class methods inherited from class Mail::Encodings::TransferEncoding

can_encode?(enc) can_encode?, can_transport?(enc) can_transport?, compatible_input?(str) compatible_input?, cost(str) cost, lowest_cost(str, encodings) lowest_cost, negotiate(message_encoding, source_encoding, str, allowed_encodings = nil) negotiate, renegotiate(message_encoding, source_encoding, str, allowed_encodings = nil) renegotiate, to_s to_s

Class Method Detail

def self.cost(str) #

1 output byte per input byte.


[View source]
def self.decode(str) #

[View source]
def self.encode(str) #

[View source]