summaryrefslogtreecommitdiff
path: root/package/source/zipapi/ByteChucker.cxx
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2000-11-29 12:47:18 +0000
committerMartin Gallwey <mtg@openoffice.org>2000-11-29 12:47:18 +0000
commit2d5e27c5f12628e1dad42c31863a08b4a4a8f284 (patch)
treed8efcfd1e8db97ffd8a57f840000713d0e52b39e /package/source/zipapi/ByteChucker.cxx
parentd9c69f41ca9224aa0bbbaa5853e35c404ece02ef (diff)
#80556# correctly handle empty zips
Diffstat (limited to 'package/source/zipapi/ByteChucker.cxx')
-rw-r--r--package/source/zipapi/ByteChucker.cxx26
1 files changed, 2 insertions, 24 deletions
diff --git a/package/source/zipapi/ByteChucker.cxx b/package/source/zipapi/ByteChucker.cxx
index b10781c8edcb..e64de97dba34 100644
--- a/package/source/zipapi/ByteChucker.cxx
+++ b/package/source/zipapi/ByteChucker.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ByteChucker.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: mtg $ $Date: 2000-11-29 03:14:55 $
+ * last change: $Author: mtg $ $Date: 2000-11-29 13:47:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -127,28 +127,6 @@ sal_Int64 SAL_CALL ByteChucker::getLength( )
else
throw io::IOException();
}
-void ByteChucker::putInt8( sal_Int8 nInt8)
-{
- uno::Sequence< sal_Int8 > aSequence (1);
- aSequence[0]=nInt8 & 0xFF;
- xStream->writeBytes(aSequence);
-}
-void ByteChucker::putInt16(sal_Int16 nInt16)
-{
- uno::Sequence< sal_Int8 > aSequence (2);
- aSequence[0] = (nInt16 >>0 ) & 0xFF;
- aSequence[1] = (nInt16 >>8 ) & 0xFF;
- xStream->writeBytes(aSequence);
-}
-void ByteChucker::putInt32(sal_Int32 nInt32)
-{
- uno::Sequence< sal_Int8 > aSequence (4);
- aSequence[0] = (nInt32 >> 0 ) & 0xFF;
- aSequence[1] = (nInt32 >> 8 ) & 0xFF;
- aSequence[2] = (nInt32 >> 16 ) & 0xFF;
- aSequence[3] = (nInt32 >> 24 ) & 0xFF;
- xStream->writeBytes(aSequence);
-}
ByteChucker& ByteChucker::operator << (sal_Int8 nInt8)
{
uno::Sequence< sal_Int8 > aSequence (1);