// WriteByte writes a single byte to the stream. Capacity will be ensured.
WriteByte writes a single byte to the stream. Capacity will be ensured.
// WriteByte writes a single byte to the stream . Capacity will be ensured .
func (stream *ByteStream) WriteByte(source byte) error {
	stream.SetCapacity(stream.writeOffset + 1)
	stream.data[stream.writeOffset] = source
	stream.writeOffset++
	return nil
}
func ( stream * ByteStream ) WriteByte ( source byte ) error { stream . SetCapacity ( stream . writeOffset + 1 ) stream . data [ stream . writeOffset ] = source stream . writeOffset ++ return nil }
WriteByte writes a single byte to the stream.
WriteByte writes a single byte to the stream .