// NewByteStream creates a new byte stream of the desired capacity
NewByteStream creates a new byte stream of the desired capacity
// NewByteStream creates a new byte stream of the desired capacity
func NewByteStream(capacity int) ByteStream {
	return ByteStream{
		data:        make([]byte, capacity),
		writeOffset: 0,
	}
}
func NewByteStream ( capacity int ) ByteStream { return ByteStream { data : make ( [ ] byte , capacity ) , writeOffset : 0 , } }
NewByteStream creates a new byte stream of the desired capacity
NewByteStream creates a new byte stream of the desired capacity