Skip to content

Return a slice from encoding functions #4

@davidgranstrom

Description

@davidgranstrom

Returning a slice would also match the API of std.fmt.bufPrint

pub fn encode(self: *Message, buf: []u8) Error![]u8

vs. (current API)

pub fn encode(self: *Message, buf: []u8) Error!usize

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions