Documentation ¶
Index ¶
- type Int64Bytes
- func (is Int64Bytes) Bytes() []byte
- func (is *Int64Bytes) Evict(e int64) (ok bool)
- func (is Int64Bytes) Exist(i int64) (e bool)
- func (is Int64Bytes) MarshalTo(data []byte) (int, error)
- func (is *Int64Bytes) Scan(src interface{}) (err error)
- func (is Int64Bytes) Size() int
- func (is *Int64Bytes) Unmarshal(data []byte) error
- func (is Int64Bytes) Value() (driver.Value, error)
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
Click to show internal directories.
Click to hide internal directories.