Function slice [src]
Return the encoded length as a slice.
Prototype
pub fn slice(self: *const Length) []const u8 Parameters
self: *const Length Source
pub fn slice(self: *const Length) []const u8 {
return self.buf[0..self.len];
} pub fn slice(self: *const Length) []const u8 self: *const Length pub fn slice(self: *const Length) []const u8 {
return self.buf[0..self.len];
}