package
0.0.0-20190408051622-ebf3c7b94afd
Repository: https://github.com/m3db/m3x.git
Documentation: pkg.go.dev

# Functions

Bytes returns the bytes backing a string, it is the caller's responsibility not to mutate the bytes returned.
String returns a string backed by a byte slice, it is the caller's responsibility not to mutate the bytes while using the string returned.
WithBytes converts a string to a byte slice with zero heap memory allocations, and calls a function to process the byte slice.
WithBytesAndArg converts a string to a byte slice with zero heap memory allocations, and calls a function to process the byte slice alongside one argument.
WithString converts a byte slice to a string with zero heap memory allocations, and calls a function to process the string.
WithStringAndArg converts a byte slice to a string with zero heap memory allocations, and calls a function to process the string with one argument.

# Type aliases

BytesAndArgFn takes an argument alongside the byte slice.
BytesFn processes a byte slice.
ImmutableBytes represents an immutable byte slice.
StringAndArgFn takes an argument alongside the byte slice.
StringFn processes a byte slice.