using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OpenMetaverse.Interfaces { /// /// Interface to a class that can supply cached byte arrays /// public interface IByteBufferPool { /// /// Leases a byte array from the pool /// /// Minimum size the array must be to satisfy this request /// A poooled array that is at least minSize byte[] LeaseBytes(int minSize); /// /// Returns a byte array to the pool /// /// The bytes being returned void ReturnBytes(byte[] bytes); } }