Skip to content

Return a slice from encoding functions #4

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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