NtDllRtlCrc32 Method
Calculates the CRC-32 checksum for a block of bytes.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("NtDll.dll", SetLastError = true)]
public static uint RtlCrc32(
byte[] buffer,
IntPtr size,
uint initialValue = 4294967295
)
<DllImportAttribute("NtDll.dll", SetLastError := true>]
Public Shared Function RtlCrc32 (
buffer As Byte(),
size As IntPtr,
Optional initialValue As UInteger = 4294967295
) As UInteger
Dim buffer As Byte()
Dim size As IntPtr
Dim initialValue As UInteger
Dim returnValue As UInteger
returnValue = NtDll.RtlCrc32(buffer,
size, initialValue)
public:
[DllImportAttribute(L"NtDll.dll", SetLastError = true)]
static unsigned int RtlCrc32(
[InAttribute] array<unsigned char>^ buffer,
[InAttribute] IntPtr size,
[InAttribute] unsigned int initialValue = 4294967295
)
[<DllImportAttribute("NtDll.dll", SetLastError = true)>]
static member RtlCrc32 :
buffer : byte[] *
size : IntPtr *
?initialValue : uint32
(* Defaults:
let _initialValue = defaultArg initialValue 4294967295
*)
-> uint32
No code example is currently available or this language may not be supported.
- buffer Byte
-
The buffer containing the data to calculate its CRC checksum.
- size IntPtr
-
The size of buffer parameter, in bytes.
- initialValue UInt32 (Optional)
-
The value used to initialize the CRC value/register.
UInt32
Returns the resulting CRC-32 checksum.