SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions

Functions

template<domain D :shared3p >
D bool bl_strIsEmpty (D xor_uint8[[1]] s)
 

Detailed Description

Check if the input string is empty.

Note
D - shared3p protection domain
Supported types - xor_uint8
this is done by checking if all of the bytes in the string are zeroed
See bl_strEmpty for parallel version.
Parameters
s- a vector of supported type
Returns
returns true if the given known length input string is empty
Leakage
None

Function Documentation

◆ bl_strIsEmpty()

D bool bl_strIsEmpty ( D xor_uint8[[1]]  s)