stringToBinary

Performs the reverse of gda.binary.Binary.toString_ (note that for any "\xyz" succession of 4 characters where "xyz" represents a valid octal value, the resulting read value will be modulo 256).

I str is null, then an empty (i.e. where the data part is null) #GdaBinary is created and returned.

stringToBinary
(
string str = null
)

Parameters

str string

a string to convert, or null

Return Value

Type: gda.binary.Binary

a new #GdaBinary if no error were found in str, or null otherwise