SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
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]

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]

BlStringVector<D> bl_str ( string  s,
uint  n 
)