public void ustart_str(string s) { // check and change mode if (mode != SMODE.DEFAULT) { throw new alglib.alglibexception("ALGLIB: internal error during (un)serialization"); } mode = SMODE.FROM_STRING; in_str = s.ToCharArray(); bytes_read = 0; }
public void sstart_str() { int allocsize = get_alloc_size(); // check and change mode if (mode != SMODE.ALLOC) { throw new alglib.alglibexception("ALGLIB: internal error during (un)serialization"); } mode = SMODE.TO_STRING; // other preparations out_str = new char[allocsize]; entries_saved = 0; bytes_written = 0; }
public void alloc_start() { entries_needed = 0; bytes_asked = 0; mode = SMODE.ALLOC; }
public serializer() { mode = SMODE.DEFAULT; entries_needed = 0; bytes_asked = 0; }