Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

RTDECL ( uint32_t   ) 

Sets the sub-class of the record.

It is recommended to try make sure that nobody is using this class while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
pRec The validator record.
uSubClass The new sub-class value.
Retains a reference to a lock validator class.

Returns:
New reference count; UINT32_MAX if the handle is invalid.
Parameters:
hClass Handle to the class.
Releases a reference to a lock validator class.

Returns:
New reference count. 0 if hClass is NIL_RTLOCKVALCLASS. UINT32_MAX if the handle is invalid.
Parameters:
hClass Handle to the class.
Generate a 32-bit unsigned random number in the set [u32First..u32Last].

Returns:
The random number.
Parameters:
u32First First number in the set.
u32Last Last number in the set.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Generate a 32-bit unsigned random number in the set [u32First..u32Last].

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
u32First First number in the set.
u32Last Last number in the set.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
Changes the lock validator sub-class of the mutex semaphore.

It is recommended to try make sure that nobody is using this sempahore while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
hMutexSem The handle to the mutex semaphore.
uSubClass The new sub-class value.
Changes the lock validator sub-class of the read/write semaphore.

It is recommended to try make sure that nobody is using this sempahore while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
hRWSem Handle to the read/write semaphore.
uSubClass The new sub-class value.
Gets the write recursion count.

Returns:
The write recursion count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Gets the read recursion count of the current writer.

Returns:
The read recursion count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Gets the current number of reads.

This includes all read recursions, so it might be higher than the number of read owners. It does not include reads done by the current writer.

Returns:
The read count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Calculates the checksum of a pseudo header given an IPv4 header.

Returns:
32-bit intermediary checksum value.
Parameters:
pIpHdr The IP header (network endian (big)).
Calculates the checksum of a pseudo header given the individual components.

Returns:
32-bit intermediary checksum value.
Parameters:
SrcAddr The source address in host endian.
DstAddr The destination address in host endian.
bProtocol The protocol number.
cbPkt The packet size (host endian of course) (no IPv4 header).
Calculates the checksum of a pseudo header given an IPv6 header.

Returns:
32-bit intermediary checksum value.
Parameters:
pIpHdr The IPv6 header (network endian (big)).
bProtocol The protocol number. This can be the same as the ip6_nxt field, but doesn't need to be.
cbPkt The packet size (host endian of course). This can be the same as the ip6_plen field, but as with bProtocol it won't be when extension headers are present. For UDP this will be uh_ulen converted to host endian.
Calculates the checksum of a pseudo header given the individual components.

Returns:
32-bit intermediary checksum value.
Parameters:
pSrcAddr Pointer to the source address in network endian.
pDstAddr Pointer to the destination address in network endian.
bProtocol The protocol number. This can be the same as the ip6_nxt field, but doesn't need to be.
cbPkt The packet size (host endian of course). This can be the same as the ip6_plen field, but as with bProtocol it won't be when extension headers are present. For UDP this will be uh_ulen converted to host endian.
Release a reference to the address space.

When the reference count reaches zero, the address space is destroyed. That means unlinking all the modules it currently contains, potentially causing some or all of them to be destroyed as they are managed by reference counting.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgAs The address space handle. The NIL handle is quietly ignored and 0 is returned.
Remarks:
Will not take any locks.
Gets the number of modules in the address space.

This can be used together with RTDbgAsModuleByIndex to enumerate the modules.

Returns:
The number of modules.
Parameters:
hDbgAs The address space handle.
Remarks:
Will not take any locks.
Retains another reference to the module.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgMod The module handle.
Remarks:
Will not take any locks.
Release a reference to the module.

When the reference count reaches zero, the module is destroyed.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgMod The module handle. The NIL handle is quietly ignored and 0 is returned.
Remarks:
Will not take any locks.
Gets the symbol count.

This can be used together wtih RTDbgModSymbolByOrdinal or RTDbgModSymbolByOrdinalA to enumerate all the symbols.

Returns:
The number of symbols in the module. UINT32_MAX is returned if the module handle is invalid or some other error occurs.
Parameters:
hDbgMod The module handle.
Gets the line number count.

This can be used together wtih RTDbgModLineByOrdinal or RTDbgModSymbolByLineA to enumerate all the line number information.

Returns:
The number of line numbers in the module. UINT32_MAX is returned if the module handle is invalid or some other error occurs.
Parameters:
hDbgMod The module handle.
Gets the source code management revision of the IPRT build.
Returns:
Source code management revision number.
Gets the major product version number.
Returns:
Major product version number.
Remarks:
See RTBldCfgVersion.
Gets the minor product version number.
Returns:
Minor product version number.
Remarks:
See RTBldCfgVersion.
Gets the product build number.
Returns:
Product build number.
Remarks:
See RTBldCfgVersion.
Start a multiblock CRC-32 calculation.

Returns:
Start CRC-32.
Processes a multiblock of a CRC-32 calculation.

Returns:
Intermediate CRC-32 value.
Parameters:
uCRC32 Current CRC-32 intermediate value.
pv The data block to process.
cb The size of the data block in bytes.
Complete a multiblock CRC-32 calculation.

Returns:
CRC-32 value.
Parameters:
uCRC32 Current CRC-32 intermediate value.
Calculate Adler-32 for a memory block.

Returns:
Adler-32 for the memory block.
Parameters:
pv Pointer to the memory block.
cb Size of the memory block in bytes.
Start a multiblock Adler-32 calculation.

Returns:
Start Adler-32.
Processes a multiblock of a Adler-32 calculation.

Returns:
Intermediate Adler-32 value.
Parameters:
uCrc Current Adler-32 intermediate value.
pv The data block to process.
cb The size of the data block in bytes.
Complete a multiblock Adler-32 calculation.

Returns:
Adler-32 value.
Parameters:
uCrc Current Adler-32 intermediate value.
Release a reference to the address space.

When the reference count reaches zero, the address space is destroyed. That means unlinking all the modules it currently contains, potentially causing some or all of them to be destroyed as they are managed by reference counting.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgAs The address space handle. The NIL handle is quietly ignored and 0 is returned.
Remarks:
Will not take any locks.
Gets the number of modules in the address space.

This can be used together with RTDbgAsModuleByIndex to enumerate the modules.

Returns:
The number of modules.
Parameters:
hDbgAs The address space handle.
Remarks:
Will not take any locks.
Retains another reference to the module.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgMod The module handle.
Remarks:
Will not take any locks.
Release a reference to the module.

When the reference count reaches zero, the module is destroyed.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgMod The module handle. The NIL handle is quietly ignored and 0 is returned.
Remarks:
Will not take any locks.
Gets the symbol count.

This can be used together wtih RTDbgModSymbolByOrdinal or RTDbgModSymbolByOrdinalA to enumerate all the symbols.

Returns:
The number of symbols in the module. UINT32_MAX is returned if the module handle is invalid or some other error occurs.
Parameters:
hDbgMod The module handle.
Gets the line number count.

This can be used together wtih RTDbgModLineByOrdinal or RTDbgModSymbolByLineA to enumerate all the line number information.

Returns:
The number of line numbers in the module. UINT32_MAX is returned if the module handle is invalid or some other error occurs.
Parameters:
hDbgMod The module handle.
Sets the sub-class of the record.

It is recommended to try make sure that nobody is using this class while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
pRec The validator record.
uSubClass The new sub-class value.
Retains a reference to a lock validator class.

Returns:
New reference count; UINT32_MAX if the handle is invalid.
Parameters:
hClass Handle to the class.
Releases a reference to a lock validator class.

Returns:
New reference count. 0 if hClass is NIL_RTLOCKVALCLASS. UINT32_MAX if the handle is invalid.
Parameters:
hClass Handle to the class.
Releases a reference to a memory block in a pool.

Returns:
New reference count, UINT32_MAX on error (asserted).
Parameters:
hMemPool Handle to the pool containing the memory. Passing NIL here is fine, but it may come at a slight performance cost.
pv Pointer to memory block.
Get the current reference count.

Returns:
The reference count, UINT32_MAX on error (asserted).
Parameters:
pv Pointer to memory block.
Get the maximum frequency of a CPU.

The CPU must be online.

Returns:
The frequency as MHz. 0 if the CPU is offline or the information is not available.
Parameters:
idCpu The identifier of the CPU.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Generate a 32-bit unsigned random number in the set [u32First..u32Last].

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
u32First First number in the set.
u32Last Last number in the set.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
Changes the lock validator sub-class of the read/write semaphore.

It is recommended to try make sure that nobody is using this sempahore while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
hRWSem Handle to the read/write semaphore.
uSubClass The new sub-class value.
Gets the write recursion count.

Returns:
The write recursion count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Gets the read recursion count of the current writer.

Returns:
The read recursion count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Gets the current number of reads.

This includes all read recursions, so it might be higher than the number of read owners. It does not include reads done by the current writer.

Returns:
The read count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Release a reference to the socket handle.

When the reference count reaches zero, the socket handle is shut down and destroyed. This will not be graceful shutdown, use the protocol specific close method if this is desired.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hSocket The socket handle. The NIL handle is quietly ignored and 0 is returned.
Releases a reference to a string.

Returns:
The new reference count. UINT32_MAX is returned if the string pointer is invalid.
Parameters:
hStrCache Handle to the string cache. Passing NIL is ok, but this may come a performance hit.
psz Pointer to a cached string.
Debugging the time api.

Returns:
the number of times the TSC interval expired RTTimeNanoTS().
Debugging the time api.

Returns:
the number of bad previous values encountered by RTTimeNanoTS().
Debugging the time api.

Returns:
the number of update races in RTTimeNanoTS().
Get the second timestamp relative to program startup.

Returns:
Timestamp relative to program startup.
Calculates the checksum of a pseudo header given the individual components.

Returns:
32-bit intermediary checksum value.
Parameters:
SrcAddr The source address in host endian.
DstAddr The destination address in host endian.
bProtocol The protocol number.
cbPkt The packet size (host endian of course) (no IPv4 header).
Calculates the checksum of a pseudo header given the individual components.

Returns:
32-bit intermediary checksum value.
Parameters:
pSrcAddr Pointer to the source address in network endian.
pDstAddr Pointer to the destination address in network endian.
bProtocol The protocol number. This can be the same as the ip6_nxt field, but doesn't need to be.
cbPkt The packet size (host endian of course). This can be the same as the ip6_plen field, but as with bProtocol it won't be when extension headers are present. For UDP this will be uh_ulen converted to host endian.
Sets the sub-class of the record.

It is recommended to try make sure that nobody is using this class while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
pRec The validator record.
uSubClass The new sub-class value.
Retains a reference to a lock validator class.

Returns:
New reference count; UINT32_MAX if the handle is invalid.
Parameters:
hClass Handle to the class.
Releases a reference to a lock validator class.

Returns:
New reference count. 0 if hClass is NIL_RTLOCKVALCLASS. UINT32_MAX if the handle is invalid.
Parameters:
hClass Handle to the class.
Generate a 32-bit unsigned random number in the set [u32First..u32Last].

Returns:
The random number.
Parameters:
u32First First number in the set.
u32Last Last number in the set.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Generate a 32-bit unsigned random number in the set [u32First..u32Last].

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
u32First First number in the set.
u32Last Last number in the set.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
Changes the lock validator sub-class of the mutex semaphore.

It is recommended to try make sure that nobody is using this sempahore while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
hMutexSem The handle to the mutex semaphore.
uSubClass The new sub-class value.
Changes the lock validator sub-class of the read/write semaphore.

It is recommended to try make sure that nobody is using this sempahore while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
hRWSem Handle to the read/write semaphore.
uSubClass The new sub-class value.
Gets the write recursion count.

Returns:
The write recursion count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Gets the read recursion count of the current writer.

Returns:
The read recursion count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Gets the current number of reads.

This includes all read recursions, so it might be higher than the number of read owners. It does not include reads done by the current writer.

Returns:
The read count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Calculates the checksum of a pseudo header given an IPv4 header.

Returns:
32-bit intermediary checksum value.
Parameters:
pIpHdr The IP header (network endian (big)).
Calculates the checksum of a pseudo header given the individual components.

Returns:
32-bit intermediary checksum value.
Parameters:
SrcAddr The source address in host endian.
DstAddr The destination address in host endian.
bProtocol The protocol number.
cbPkt The packet size (host endian of course) (no IPv4 header).
Calculates the checksum of a pseudo header given an IPv6 header.

Returns:
32-bit intermediary checksum value.
Parameters:
pIpHdr The IPv6 header (network endian (big)).
bProtocol The protocol number. This can be the same as the ip6_nxt field, but doesn't need to be.
cbPkt The packet size (host endian of course). This can be the same as the ip6_plen field, but as with bProtocol it won't be when extension headers are present. For UDP this will be uh_ulen converted to host endian.
Calculates the checksum of a pseudo header given the individual components.

Returns:
32-bit intermediary checksum value.
Parameters:
pSrcAddr Pointer to the source address in network endian.
pDstAddr Pointer to the destination address in network endian.
bProtocol The protocol number. This can be the same as the ip6_nxt field, but doesn't need to be.
cbPkt The packet size (host endian of course). This can be the same as the ip6_plen field, but as with bProtocol it won't be when extension headers are present. For UDP this will be uh_ulen converted to host endian.
Release a reference to the address space.

When the reference count reaches zero, the address space is destroyed. That means unlinking all the modules it currently contains, potentially causing some or all of them to be destroyed as they are managed by reference counting.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgAs The address space handle. The NIL handle is quietly ignored and 0 is returned.
Remarks:
Will not take any locks.
Gets the number of modules in the address space.

This can be used together with RTDbgAsModuleByIndex to enumerate the modules.

Returns:
The number of modules.
Parameters:
hDbgAs The address space handle.
Remarks:
Will not take any locks.
Retains another reference to the module.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgMod The module handle.
Remarks:
Will not take any locks.
Release a reference to the module.

When the reference count reaches zero, the module is destroyed.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgMod The module handle. The NIL handle is quietly ignored and 0 is returned.
Remarks:
Will not take any locks.
Gets the symbol count.

This can be used together wtih RTDbgModSymbolByOrdinal or RTDbgModSymbolByOrdinalA to enumerate all the symbols.

Returns:
The number of symbols in the module. UINT32_MAX is returned if the module handle is invalid or some other error occurs.
Parameters:
hDbgMod The module handle.
Gets the line number count.

This can be used together wtih RTDbgModLineByOrdinal or RTDbgModSymbolByLineA to enumerate all the line number information.

Returns:
The number of line numbers in the module. UINT32_MAX is returned if the module handle is invalid or some other error occurs.
Parameters:
hDbgMod The module handle.
Get the second timestamp relative to program startup.

Returns:
Timestamp relative to program startup.
Debugging the time api.

Returns:
the number of 1ns steps which has been applied by RTTimeNanoTS().
Debugging the time api.

Returns:
the number of times the TSC interval expired RTTimeNanoTS().
Debugging the time api.

Returns:
the number of bad previous values encountered by RTTimeNanoTS().
Debugging the time api.

Returns:
the number of update races in RTTimeNanoTS().
Gets the source code management revision of the IPRT build.
Returns:
Source code management revision number.
Gets the major product version number.
Returns:
Major product version number.
Remarks:
See RTBldCfgVersion.
Gets the minor product version number.
Returns:
Minor product version number.
Remarks:
See RTBldCfgVersion.
Gets the product build number.
Returns:
Product build number.
Remarks:
See RTBldCfgVersion.
Start a multiblock CRC-32 calculation.

Returns:
Start CRC-32.
Processes a multiblock of a CRC-32 calculation.

Returns:
Intermediate CRC-32 value.
Parameters:
uCRC32 Current CRC-32 intermediate value.
pv The data block to process.
cb The size of the data block in bytes.
Complete a multiblock CRC-32 calculation.

Returns:
CRC-32 value.
Parameters:
uCRC32 Current CRC-32 intermediate value.
Calculate Adler-32 for a memory block.

Returns:
Adler-32 for the memory block.
Parameters:
pv Pointer to the memory block.
cb Size of the memory block in bytes.
Start a multiblock Adler-32 calculation.

Returns:
Start Adler-32.
Processes a multiblock of a Adler-32 calculation.

Returns:
Intermediate Adler-32 value.
Parameters:
uCrc Current Adler-32 intermediate value.
pv The data block to process.
cb The size of the data block in bytes.
Complete a multiblock Adler-32 calculation.

Returns:
Adler-32 value.
Parameters:
uCrc Current Adler-32 intermediate value.
Release a reference to the address space.

When the reference count reaches zero, the address space is destroyed. That means unlinking all the modules it currently contains, potentially causing some or all of them to be destroyed as they are managed by reference counting.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgAs The address space handle. The NIL handle is quietly ignored and 0 is returned.
Remarks:
Will not take any locks.
Gets the number of modules in the address space.

This can be used together with RTDbgAsModuleByIndex to enumerate the modules.

Returns:
The number of modules.
Parameters:
hDbgAs The address space handle.
Remarks:
Will not take any locks.
Retains another reference to the module.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgMod The module handle.
Remarks:
Will not take any locks.
Release a reference to the module.

When the reference count reaches zero, the module is destroyed.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgMod The module handle. The NIL handle is quietly ignored and 0 is returned.
Remarks:
Will not take any locks.
Gets the symbol count.

This can be used together wtih RTDbgModSymbolByOrdinal or RTDbgModSymbolByOrdinalA to enumerate all the symbols.

Returns:
The number of symbols in the module. UINT32_MAX is returned if the module handle is invalid or some other error occurs.
Parameters:
hDbgMod The module handle.
Gets the line number count.

This can be used together wtih RTDbgModLineByOrdinal or RTDbgModSymbolByLineA to enumerate all the line number information.

Returns:
The number of line numbers in the module. UINT32_MAX is returned if the module handle is invalid or some other error occurs.
Parameters:
hDbgMod The module handle.
Sets the sub-class of the record.

It is recommended to try make sure that nobody is using this class while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
pRec The validator record.
uSubClass The new sub-class value.
Retains a reference to a lock validator class.

Returns:
New reference count; UINT32_MAX if the handle is invalid.
Parameters:
hClass Handle to the class.
Releases a reference to a lock validator class.

Returns:
New reference count. 0 if hClass is NIL_RTLOCKVALCLASS. UINT32_MAX if the handle is invalid.
Parameters:
hClass Handle to the class.
Releases a reference to a memory block in a pool.

Returns:
New reference count, UINT32_MAX on error (asserted).
Parameters:
hMemPool Handle to the pool containing the memory. Passing NIL here is fine, but it may come at a slight performance cost.
pv Pointer to memory block.
Get the current reference count.

Returns:
The reference count, UINT32_MAX on error (asserted).
Parameters:
pv Pointer to memory block.
Get the maximum frequency of a CPU.

The CPU must be online.

Returns:
The frequency as MHz. 0 if the CPU is offline or the information is not available.
Parameters:
idCpu The identifier of the CPU.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Generate a 32-bit unsigned random number in the set [u32First..u32Last].

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
u32First First number in the set.
u32Last Last number in the set.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
Changes the lock validator sub-class of the read/write semaphore.

It is recommended to try make sure that nobody is using this sempahore while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
hRWSem Handle to the read/write semaphore.
uSubClass The new sub-class value.
Gets the write recursion count.

Returns:
The write recursion count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Gets the read recursion count of the current writer.

Returns:
The read recursion count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Gets the current number of reads.

This includes all read recursions, so it might be higher than the number of read owners. It does not include reads done by the current writer.

Returns:
The read count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Release a reference to the socket handle.

When the reference count reaches zero, the socket handle is shut down and destroyed. This will not be graceful shutdown, use the protocol specific close method if this is desired.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hSocket The socket handle. The NIL handle is quietly ignored and 0 is returned.
Releases a reference to a string.

Returns:
The new reference count. UINT32_MAX is returned if the string pointer is invalid.
Parameters:
hStrCache Handle to the string cache. Passing NIL is ok, but this may come a performance hit.
psz Pointer to a cached string.
Debugging the time api.

Returns:
the number of times the TSC interval expired RTTimeNanoTS().
Debugging the time api.

Returns:
the number of bad previous values encountered by RTTimeNanoTS().
Debugging the time api.

Returns:
the number of update races in RTTimeNanoTS().
Get the second timestamp relative to program startup.

Returns:
Timestamp relative to program startup.
Calculates the checksum of a pseudo header given the individual components.

Returns:
32-bit intermediary checksum value.
Parameters:
SrcAddr The source address in host endian.
DstAddr The destination address in host endian.
bProtocol The protocol number.
cbPkt The packet size (host endian of course) (no IPv4 header).
Calculates the checksum of a pseudo header given the individual components.

Returns:
32-bit intermediary checksum value.
Parameters:
pSrcAddr Pointer to the source address in network endian.
pDstAddr Pointer to the destination address in network endian.
bProtocol The protocol number. This can be the same as the ip6_nxt field, but doesn't need to be.
cbPkt The packet size (host endian of course). This can be the same as the ip6_plen field, but as with bProtocol it won't be when extension headers are present. For UDP this will be uh_ulen converted to host endian.
Sets the sub-class of the record.

It is recommended to try make sure that nobody is using this class while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
pRec The validator record.
uSubClass The new sub-class value.
Retains a reference to a lock validator class.

Returns:
New reference count; UINT32_MAX if the handle is invalid.
Parameters:
hClass Handle to the class.
Releases a reference to a lock validator class.

Returns:
New reference count. 0 if hClass is NIL_RTLOCKVALCLASS. UINT32_MAX if the handle is invalid.
Parameters:
hClass Handle to the class.
Generate a 32-bit unsigned random number in the set [u32First..u32Last].

Returns:
The random number.
Parameters:
u32First First number in the set.
u32Last Last number in the set.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Generate a 32-bit unsigned random number in the set [u32First..u32Last].

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
u32First First number in the set.
u32Last Last number in the set.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
Changes the lock validator sub-class of the mutex semaphore.

It is recommended to try make sure that nobody is using this sempahore while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
hMutexSem The handle to the mutex semaphore.
uSubClass The new sub-class value.
Changes the lock validator sub-class of the read/write semaphore.

It is recommended to try make sure that nobody is using this sempahore while changing the value.

Returns:
The old sub-class. RTLOCKVAL_SUB_CLASS_INVALID is returns if the lock validator isn't compiled in or either of the parameters are invalid.
Parameters:
hRWSem Handle to the read/write semaphore.
uSubClass The new sub-class value.
Gets the write recursion count.

Returns:
The write recursion count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Gets the read recursion count of the current writer.

Returns:
The read recursion count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Gets the current number of reads.

This includes all read recursions, so it might be higher than the number of read owners. It does not include reads done by the current writer.

Returns:
The read count (0 if bad semaphore handle).
Parameters:
hRWSem Handle to the read/write semaphore.
Calculates the checksum of a pseudo header given an IPv4 header.

Returns:
32-bit intermediary checksum value.
Parameters:
pIpHdr The IP header (network endian (big)).
Calculates the checksum of a pseudo header given the individual components.

Returns:
32-bit intermediary checksum value.
Parameters:
SrcAddr The source address in host endian.
DstAddr The destination address in host endian.
bProtocol The protocol number.
cbPkt The packet size (host endian of course) (no IPv4 header).
Calculates the checksum of a pseudo header given an IPv6 header.

Returns:
32-bit intermediary checksum value.
Parameters:
pIpHdr The IPv6 header (network endian (big)).
bProtocol The protocol number. This can be the same as the ip6_nxt field, but doesn't need to be.
cbPkt The packet size (host endian of course). This can be the same as the ip6_plen field, but as with bProtocol it won't be when extension headers are present. For UDP this will be uh_ulen converted to host endian.
Calculates the checksum of a pseudo header given the individual components.

Returns:
32-bit intermediary checksum value.
Parameters:
pSrcAddr Pointer to the source address in network endian.
pDstAddr Pointer to the destination address in network endian.
bProtocol The protocol number. This can be the same as the ip6_nxt field, but doesn't need to be.
cbPkt The packet size (host endian of course). This can be the same as the ip6_plen field, but as with bProtocol it won't be when extension headers are present. For UDP this will be uh_ulen converted to host endian.
Release a reference to the address space.

When the reference count reaches zero, the address space is destroyed. That means unlinking all the modules it currently contains, potentially causing some or all of them to be destroyed as they are managed by reference counting.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgAs The address space handle. The NIL handle is quietly ignored and 0 is returned.
Remarks:
Will not take any locks.
Gets the number of modules in the address space.

This can be used together with RTDbgAsModuleByIndex to enumerate the modules.

Returns:
The number of modules.
Parameters:
hDbgAs The address space handle.
Remarks:
Will not take any locks.
Retains another reference to the module.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgMod The module handle.
Remarks:
Will not take any locks.
Release a reference to the module.

When the reference count reaches zero, the module is destroyed.

Returns:
New reference count, UINT32_MAX on invalid handle (asserted).
Parameters:
hDbgMod The module handle. The NIL handle is quietly ignored and 0 is returned.
Remarks:
Will not take any locks.
Gets the symbol count.

This can be used together wtih RTDbgModSymbolByOrdinal or RTDbgModSymbolByOrdinalA to enumerate all the symbols.

Returns:
The number of symbols in the module. UINT32_MAX is returned if the module handle is invalid or some other error occurs.
Parameters:
hDbgMod The module handle.
Gets the line number count.

This can be used together wtih RTDbgModLineByOrdinal or RTDbgModSymbolByLineA to enumerate all the line number information.

Returns:
The number of line numbers in the module. UINT32_MAX is returned if the module handle is invalid or some other error occurs.
Parameters:
hDbgMod The module handle.
Debugging the time api.

Returns:
the number of 1ns steps which has been applied by RTTimeNanoTS().
Debugging the time api.

Returns:
the number of times the TSC interval expired RTTimeNanoTS().
Debugging the time api.

Returns:
the number of bad previous values encountered by RTTimeNanoTS().
Debugging the time api.

Returns:
the number of update races in RTTimeNanoTS().

Todo:
darwin R0 MP (rainy day)

Definition at line 66 of file crc32-zlib.cpp.

{
    return crc32(0, NULL, 0);
}


Generated by  Doxygen 1.6.0   Back to index