BufferManager.ReturnBuffer(Byte[]) 方法

定义

将缓冲区返回到缓冲池。Returns a buffer to the pool.

public:
 abstract void ReturnBuffer(cli::array <System::Byte> ^ buffer);
public abstract void ReturnBuffer (byte[] buffer);
abstract member ReturnBuffer : byte[] -> unit
Public MustOverride Sub ReturnBuffer (buffer As Byte())

参数

buffer
Byte[]

要返回的缓冲区引用。A reference to the buffer being returned.

例外

buffer 引用不可为 nullbuffer reference cannot be null.

buffer 的长度与缓冲池的缓冲区长度属性不符。Length of buffer does not match the pool's buffer length property.

注解

缓冲区返回到缓冲池后,可供重复使用。The buffer is returned to the pool and is available for re-use.

适用于