The ByteStream type doesn't actually need to use slicing. The primary two sources of a bytestream are file handles and network sockets. Shaving extra bytes from the end can be accomplished with resizeByteArray. Bytes are never shaved from the beginning.
The
ByteStreamtype doesn't actually need to use slicing. The primary two sources of a bytestream are file handles and network sockets. Shaving extra bytes from the end can be accomplished withresizeByteArray. Bytes are never shaved from the beginning.