Skip to content

Latest commit

 

History

History

drpcenc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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.