/// <summary> /// Copies the internal buffer of bytes to a new array. /// </summary> /// <returns>An array of bytes built up from the internal buffer.</returns> public byte[] ToArray() => InternalStream.ToArray();