i64b

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int64Bytes

type Int64Bytes []int64

Int64Bytes be used to MySql\Protobuf varbinary converting.

func (Int64Bytes) Bytes

func (is Int64Bytes) Bytes() []byte

Bytes marshal int64 slice to bytes,each int64 will occupy Fixed 8 bytes

func (*Int64Bytes) Evict

func (is *Int64Bytes) Evict(e int64) (ok bool)

Evict get rid of the sepcified num from the slice

func (Int64Bytes) Exist

func (is Int64Bytes) Exist(i int64) (e bool)

Exist judge the sepcified num is in the slice or not

func (Int64Bytes) MarshalTo

func (is Int64Bytes) MarshalTo(data []byte) (int, error)

MarshalTo marshal int64 slice to bytes,each int64 will occupy Fixed 8 bytes. if the argument data not supplied with the full size,it will return the actual written size

func (*Int64Bytes) Scan

func (is *Int64Bytes) Scan(src interface{}) (err error)

Scan parse the data into int64 slice

func (Int64Bytes) Size

func (is Int64Bytes) Size() int

Size return the total size it will occupy in bytes

func (*Int64Bytes) Unmarshal

func (is *Int64Bytes) Unmarshal(data []byte) error

Unmarshal parse the data into int64 slice

func (Int64Bytes) Value

func (is Int64Bytes) Value() (driver.Value, error)

Value marshal int64 slice to driver.Value,each int64 will occupy Fixed 8 bytes

Jump to

Keyboard shortcuts

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