// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace CommunityToolkit.HighPerformance.Streams;
///
/// An interface for types acting as sources for instances.
///
internal interface ISpanOwner
{
///
/// Gets the length of the underlying memory area.
///
int Length { get; }
///
/// Gets a instance wrapping the underlying memory area.
///
Span Span { get; }
}