IDmaChannel::SetBufferSize method (portcls.h)
The SetBufferSize method sets the DMA channel's current buffer size.
void SetBufferSize(
ULONG BufferSize
);
BufferSize
Specifies the buffer's current size in bytes.
None
The SetBufferSize method is used to change the size of a buffer that was previously allocated by the IDmaChannel::AllocateBuffer method. After the call to AllocateBuffer and before SetBufferSize is called, the IDmaChannel::BufferSize returns the actual size of the allocated buffer. After SetBufferSize is called, BufferSize returns the size specified in the SetBufferSize call. The DMA-channel object does not actually use this value internally. The current buffer size is maintained by the object to allow its various clients to communicate the intended size of the buffer.
Requirement | Value |
---|---|
Header | portcls.h |
IRQL | Any level |