bslice

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: BSD-3-Clause Imports: 2 Imported by: 4

README

Byte slice

This Byte slice golang package help binary marshal/unmarshal small strings and byte slices.

GoDoc Go Report Card

Licence

BSD

Documentation

Overview

ByteSlice package help binary marshal/unmarshal small strings and byte slice

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteSlice

type ByteSlice struct{}

ByteSlice help binary marshal/ubmarshal byte slice

func (ByteSlice) ReadSlice

func (b ByteSlice) ReadSlice(buf *bytes.Buffer) (data []byte, err error)

ReadSlice read binary byte slice created with WriteSlice function

func (ByteSlice) ReadString

func (b ByteSlice) ReadString(buf *bytes.Buffer) (data string, err error)

ReadString read binary string created with WriteSlice function

func (ByteSlice) ReadStringSlice

func (b ByteSlice) ReadStringSlice(buf *bytes.Buffer) (data []string, err error)

ReadString read binary string slice created with WriteStringSlice function

func (ByteSlice) WriteSlice

func (b ByteSlice) WriteSlice(buf *bytes.Buffer, data []byte) (err error)

WriteSlice return binary representation of byte slice

func (ByteSlice) WriteStringSlice

func (b ByteSlice) WriteStringSlice(buf *bytes.Buffer, data []string) (err error)

WriteStringSlice return binary representation of string slice

Jump to

Keyboard shortcuts

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