SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions

Functions

template<domain D :shared3p >
BlStringVector< D > bl_str (string s, uint n)
 
template<domain D :shared3p >
BlStringVector< D > bl_str (string s)
 

Detailed Description

Parameters
s- a string
n- an uint type bound
Returns
returns a bounded length string vector created from the public string
Postcondition
the output string is of length n
Note
the excess bytes in the shared string are placed in the end and are zeroed

Function Documentation

◆ bl_str() [1/2]

template<domain D :shared3p >
BlStringVector< D > bl_str ( string  s)
Parameters
s- a string
Returns
returns a bounded length string vector created from the public string

◆ bl_str() [2/2]

template<domain D :shared3p >
BlStringVector< D > bl_str ( string  s,
uint  n 
)