Documentation
¶
Index ¶
- func And(a, b []byte) []byte
- func AndInto(inout, b []byte)
- func Or(a, b []byte) []byte
- func OrInto(inout, b []byte)
- func ReadByte(in io.Reader, buffer []byte) error
- func ReadBytes(in io.Reader, buffer []byte) error
- func ShiftLeft(slice []byte, n int)
- func ShiftRight(slice []byte, n int)
- func Xor(a, b []byte) []byte
- func XorInto(inout, b []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AndInto ¶
func AndInto(inout, b []byte)
AndInto, AND the contents of two byte-slices of same length, write result into first parameter. `inout` will contain `inout[i] & b[i]`, for all `i`.
func OrInto ¶
func OrInto(inout, b []byte)
OrInto, OR the contents of two byte-slices of same length, write result into first parameter. `inout` will contain `inout[i] | b[i]`, for all `i`.
func ShiftRight ¶
ShiftRight shifts contents of byte-slice `n` bits right, for n >= 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.