class
Matter::Codec::DERCodec::ObjectId
- Matter::Codec::DERCodec::ObjectId
- Reference
- Object
Included Modules
Defined in:
matter/codec/der_codec.crConstructors
-
.new(object_id : String)
Initialize ObjectId from either: - Hex string (e.g., "2A8648CE3D0201") - legacy format - Dotted decimal notation (e.g., "1.2.840.10045.2.1")
Instance Method Summary
Instance methods inherited from module Matter::Codec::DERCodec::Base
decode(data : Slice(UInt8)) : Node
decode,
encode(value : Value) : Slice(UInt8)
encode,
encode_length_bytes(value, byte_format : IO::ByteFormat = IO::ByteFormat::BigEndian)
encode_length_bytes,
encode_object_identifier(oid : String | Array(UInt32)) : Slice(UInt8)
encode_object_identifier,
encode_octet_string(data : Bytes) : Bytes
encode_octet_string,
encode_oid(oid : String | Array(UInt32)) : Slice(UInt8)
encode_oid,
encode_sequence(data : Bytes) : Bytes
encode_sequence,
encode_unsigned_int(value : UInt8 | UInt16 | UInt32, byte_format : IO::ByteFormat = IO::ByteFormat::BigEndian)
encode_unsigned_int,
parse_oid(oid : String) : Array(UInt32)
parse_oid
Constructor Detail
def self.new(object_id : String)
#
Initialize ObjectId from either:
- Hex string (e.g., "2A8648CE3D0201") - legacy format
- Dotted decimal notation (e.g., "1.2.840.10045.2.1")