packutil

package
v0.0.0-...-8fa1bb7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package packutil provides helper functions for DirEntry Packdata computation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBytes

func GetBytes(dst *[]byte, src []byte) int

GetBytes copies (part of) src to dst, based on a length header. It returns the number of bytes consumed, including the header.

func GetPublicKey

func GetPublicKey(cfg upspin.Config, user upspin.UserName) (upspin.PublicKey, error)

GetPublicKey returns the string representation of a user's public key.

func PutBytes

func PutBytes(dst, src []byte) int

PutBytes stores the varint-encoded length of src in dst, followed by a copy of src. It returns the number of bytes written to dst.

Types

This section is empty.

Jump to

Keyboard shortcuts

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