DoxigAlpha

decodeDer

Function parameters

Parameters

#
decoder:*der.Decoder

Type definitions in this namespace

Types

#
Element
A decoded view.
ExpectedTag
For decoding.
Any
Use sparingly.

Functions in this namespace

Functions

#

Source

Implementation

#
pub fn decodeDer(decoder: *der.Decoder) !@This() {
    const ele = try decoder.element(tag.toExpected());
    if (tag.constructed) decoder.index = ele.slice.end;
    return .{ .bytes = decoder.view(ele) };
}