typedef void()

in Dmf/Modules.Library/Dmf_RingBuffer.c [166:201]


typedef void (*RingBuffer_ItemProcessCallbackType)(_Inout_ VOID* Context,
                                                   _Inout_updates_(BufferSize) UCHAR* Buffer,
                                                   _In_ ULONG BufferSize);

void
RingBuffer_ItemProcessCallbackRead(
    _Inout_ VOID* Context,
    _Inout_updates_(ItemSize) UCHAR* Item,
    _In_ ULONG ItemSize
    )
/*++

Routine Description:

    Read a certain number of bytes from the Ring Buffer entry. This callback is basically
    the same as RtlCopyMemory (default callback).

Arguments:

    Context - Caller context (target buffer).
    Item - Address of beginning of buffer to read from.
    ItemSize - Number of bytes to read from the buffer.

Return Value:

    None

--*/
{
    UCHAR* targetBuffer;

    targetBuffer = (UCHAR*)Context;
    RtlCopyMemory(targetBuffer,
                  Item,
                  ItemSize);
}