drpcenc

package
v0.0.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 1 Imported by: 0

README

package drpcenc

import "storj.io/drpc/drpcenc"

Package drpcenc holds some helper functions for encoding messages.

Usage

func MarshalAppend
func MarshalAppend(msg drpc.Message, enc drpc.Encoding, buf []byte) (data []byte, err error)

MarshalAppend calls enc.Marshal(msg) and returns the data appended to buf. If enc implements MarshalAppend, that is called instead.

Documentation

Overview

Package drpcenc holds some helper functions for encoding messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalAppend

func MarshalAppend(msg drpc.Message, enc drpc.Encoding, buf []byte) (data []byte, err error)

MarshalAppend calls enc.Marshal(msg) and returns the data appended to buf. If enc implements MarshalAppend, that is called instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL