BufferManager.TakeBuffer(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a buffer of at least the specified size from the pool.
public:
abstract cli::array <System::Byte> ^ TakeBuffer(int bufferSize);
public abstract byte[] TakeBuffer (int bufferSize);
abstract member TakeBuffer : int -> byte[]
Public MustOverride Function TakeBuffer (bufferSize As Integer) As Byte()
Parameters
- bufferSize
- Int32
The size, in bytes, of the requested buffer.
Returns
Byte[]
A byte array that is the requested size of the buffer.
Exceptions
bufferSize
cannot be less than zero.
Remarks
If successful, the system returns a byte array buffer of at least the requested size.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.