Changeset 605
- Timestamp:
- Mar 3, 2007, 10:18:41 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/perl/Rappture.xs
r591 r605 58 58 59 59 void 60 RpLibrary::putFile( path, fileName, fileType, append )60 RpLibrary::putFile( path, fileName, compress, append ) 61 61 char *path 62 62 char *fileName 63 int fileType63 int compress 64 64 int append 65 65 CODE: 66 THIS->putFile(path,fileName, fileType,append);66 THIS->putFile(path,fileName,compress,append); 67 67 68 68 void -
trunk/src/core/RpLibrary.cc
r597 r605 1587 1587 Rappture::Buffer buf; 1588 1588 Rappture::Buffer fileBuf; 1589 Rappture::Outcome err; 1589 1590 unsigned int bytesWritten = 0; 1590 1591 std::string value = ""; … … 1605 1606 if (compress == RPLIB_COMPRESS) { 1606 1607 // base64 decode and un-gzip the data 1607 buf.decode(); 1608 err = buf.decode(); 1609 if (err) { 1610 // decompress and decode failed, return err 1611 return *this; 1612 } 1608 1613 } 1609 1614 } … … 1616 1621 if (compress == RPLIB_COMPRESS) { 1617 1622 // gzip and base64 encode the data 1618 buf.encode(); 1623 err = buf.encode(); 1624 if (err) { 1625 // compress and encode failed, return error 1626 return *this; 1627 } 1619 1628 } 1620 1629 else { -
trunk/src/octave/rpLibPutFile.cc
r597 r605 32 32 */ 33 33 34 DEFUN_DLD (rpLibPut String, args, ,34 DEFUN_DLD (rpLibPutFile, args, , 35 35 "-*- texinfo -*-\n\ 36 [err] = rpLibPut String(@var{libHandle},@var{path},@var{fileName},@var{compress},@var{append})\n\36 [err] = rpLibPutFile(@var{libHandle},@var{path},@var{fileName},@var{compress},@var{append})\n\ 37 37 \n\ 38 38 Clients use this to set the value of a node. If the @var{path}\n\ -
trunk/src2/core/RpBuffer.cc
r592 r605 623 623 if (compress) { 624 624 do_compress(err,*this,bout); 625 if (err) { 626 return err; 627 } 625 628 } 626 629
Note: See TracChangeset
for help on using the changeset viewer.