// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Collections.Generic;
usingSystem.Diagnostics;
usingMicrosoft.CodeAnalysis.Text;
usingMicrosoft.CodeAnalysis.Text;
namespaceMicrosoft.CodeAnalysis.Shared.Utilities
namespaceMicrosoft.CodeAnalysis.Shared.Utilities
{
{
/// <summary>
/// Values returned from StringBreaker routines.
/// Optimized for short strings with up to 4 spans.
/// Each span is encoded in a byte using 6 bits for a length and 2 bits as the gap.
/// Falls back to a <see cref="List{T}"/> if the encoding won't work.