Documentation
¶
Overview ¶
Example (ToBytes) ¶
var i int16 = 1234 fmt.Println(i) fmt.Println(toBytes(&i))
Output: 1234 [210 4]
Index ¶
- func Hash(v any) uint64
- type Hashable
- type Hasher
- func (h *Hasher) Hash() uint64
- func (h *Hasher) Reset()
- func (h *Hasher) Write(b []byte) (int, error)
- func (h *Hasher) WriteAny(v any) (int, error)
- func (h *Hasher) WriteBool(v bool) (int, error)
- func (h *Hasher) WriteFloat32(v float32) (int, error)
- func (h *Hasher) WriteFloat64(v float64) (int, error)
- func (h *Hasher) WriteInt(v int) (int, error)
- func (h *Hasher) WriteInt8(v int8) (int, error)
- func (h *Hasher) WriteInt16(v int16) (int, error)
- func (h *Hasher) WriteInt32(v int32) (int, error)
- func (h *Hasher) WriteInt64(v int64) (int, error)
- func (h *Hasher) WriteString(s string) (int, error)
- func (h *Hasher) WriteUint(v uint) (int, error)
- func (h *Hasher) WriteUint8(v uint8) (int, error)
- func (h *Hasher) WriteUint16(v uint16) (int, error)
- func (h *Hasher) WriteUint32(v uint32) (int, error)
- func (h *Hasher) WriteUint64(v uint64) (int, error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.