help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

string serialization of builtin datatypes


From: Andreas Weber
Subject: string serialization of builtin datatypes
Date: Wed, 06 May 2015 19:47:04 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0

Dear users,

I once wrote a serialize function
(https://github.com/octave-de/serialize) to get a human readable string
representation of built in datatypes. To restore the var just call eval.
The intended purpose is to serialize objects for transmission over
byte-stream channels (serial, tcp...) or for storage in databases while
perserve the readability by humans(in contrast to the usage of
typecast(x, "uint8" for example).

Does anyone see an octave-forge package this might fit in?

btw: Do we have a function which checks a string for malicious code
before evaluating? For example wget, system, unlink and so on.

Any feedback and suggestions highly appreciated.

-- Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]