namespace LC.Newtonsoft.Json
{
///
/// Provides an interface for using pooled arrays.
///
/// The array type content.
public interface IArrayPool
{
///
/// Rent an array from the pool. This array must be returned when it is no longer needed.
///
/// The minimum required length of the array. The returned array may be longer.
/// The rented array from the pool. This array must be returned when it is no longer needed.
T[] Rent(int minimumLength);
///
/// Return an array to the pool.
///
/// The array that is being returned.
void Return(T[] array);
}
}