Пример #1
0
        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;
        }
Пример #2
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;
        }
Пример #3
0
Файл: ap.cs Проект: sfcta/DaySim
 public void alloc_start()
 {
     entries_needed = 0;
     bytes_asked    = 0;
     mode           = SMODE.ALLOC;
 }
Пример #4
0
Файл: ap.cs Проект: sfcta/DaySim
 public serializer()
 {
     mode           = SMODE.DEFAULT;
     entries_needed = 0;
     bytes_asked    = 0;
 }