MCPcopy Create free account
hub / github.com/RustCrypto/formats / extend

Method extend

const-oid/src/encoder.rs:45–51  ·  view source on GitHub ↗

Extend an existing OID.

(oid: ObjectIdentifier)

Source from the content-addressed store, hash-verified

43
44 /// Extend an existing OID.
45 pub(crate) const fn extend(oid: ObjectIdentifier) -> Self {
46 Self {
47 state: State::Body,
48 bytes: oid.bytes,
49 cursor: oid.length as usize,
50 }
51 }
52
53 /// Encode an [`Arc`] as base 128 into the internal buffer.
54 pub(crate) const fn arc(mut self, arc: Arc) -> Result<Self> {

Callers 6

recordsMethod · 0.80
moduleMethod · 0.80
moduleMethod · 0.80
parse_multiMethod · 0.80
decode_to_endMethod · 0.80
encode_to_vecMethod · 0.80

Calls

no outgoing calls

Tested by 2

recordsMethod · 0.64
moduleMethod · 0.64