Function tagBytes [src]
Encode a tag and length-prefixed bytes.
Prototype
pub fn tagBytes(self: *Encoder, tag_: Tag, bytes: []const u8) !void
Parameters
self: *Encoder
tag_: Tag
bytes: []const u8
Source
pub fn tagBytes(self: *Encoder, tag_: Tag, bytes: []const u8) !void {
try self.buffer.prependSlice(bytes);
try self.length(bytes.len);
try self.tag(tag_);
}