Ignore:
Timestamp:
Mar 1, 2006 1:07:04 PM (18 years ago)
Author:
cxsong
Message:

modified serialization functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mesh/node3d.cc

    r230 r249  
    1515
    1616        char * buf = new char[len];
    17         serialize(buf, len);
     17        serialize(buf);
    1818
    1919        return buf;
     
    2222//
    2323// actual function that does the serialization
     24//     serialization order:
     25//      x y z x y z ...
    2426//
    2527// Input:
     
    3133//
    3234RP_ERROR
    33 RpNode3d::serialize(char* buf, int buflen)
     35RpNode3d::serialize(char* buf)
    3436{
    35         if (buf == NULL || buflen < 3*((signed)sizeof(int))) {
     37        if (buf == NULL) {
    3638                RpAppendErr("RpElement::deserialize: null buffer");
    3739                RpPrintErr();
Note: See TracChangeset for help on using the changeset viewer.