Skip to content

libsodium.SecureMemoryblock.IsZero

Andrew Lambert edited this page Mar 7, 2017 · 4 revisions

##Method Signatures

 Function IsZero(Offset As Int32 = 0, Length As Int32 = -1) As Boolean

##Parameters

Name Type Comment
Offset Int32 Optional. If specified, the offset to begin checking for zeroes.
Length Int32 Optional. If specified, the number of bytes to check for zero.

##Remarks This method returns True if the SecureMemoryBlock contains only zeroes. It returns False if non-zero bits are found. Execution time is constant for a given length.

Clone this wiki locally