Documentation
¶
Index ¶
- func AnyOverlap(x, y []byte) bool
- func Clear(p unsafe.Pointer, sz uintptr)
- func Equal(p, q unsafe.Pointer, sz uintptr) bool
- func InexactOverlap(x, y []byte) bool
- func Move(dst, src unsafe.Pointer, sz uintptr)
- func ReadUnaligned32(p unsafe.Pointer) uint32
- func ReadUnaligned64(p unsafe.Pointer) uint64
- func TypedMove(typ *abi.Type, dst, src unsafe.Pointer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyOverlap ¶
AnyOverlap reports whether x and y share memory at any (not necessarily corresponding) index. The memory beyond the slice length is ignored.
func InexactOverlap ¶
InexactOverlap reports whether x and y share memory at any non-corresponding index. The memory beyond the slice length is ignored. Note that x and y can have different lengths and still not have any inexact overlap.
InexactOverlap can be used to implement the requirements of the crypto/cipher AEAD, Block, BlockMode and Stream interfaces.
func ReadUnaligned32 ¶
func ReadUnaligned64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.