summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/BasicStream.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-02-27 15:16:23 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-02-27 15:16:23 +0000
commite16dd8f15eb8c52dff322f437af51fa49a9a0583 (patch)
treed13a794e58959c53bfa8fd5fe1c7670bfc9fc819 /cppe/src/IceE/BasicStream.cpp
parentFixed to work with Ice demo with instance name (diff)
downloadice-e16dd8f15eb8c52dff322f437af51fa49a9a0583.tar.bz2
ice-e16dd8f15eb8c52dff322f437af51fa49a9a0583.tar.xz
ice-e16dd8f15eb8c52dff322f437af51fa49a9a0583.zip
Inlined checkSeq.
Diffstat (limited to 'cppe/src/IceE/BasicStream.cpp')
-rw-r--r--cppe/src/IceE/BasicStream.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/cppe/src/IceE/BasicStream.cpp b/cppe/src/IceE/BasicStream.cpp
index 85aaa3fecdc..139e7d2b731 100644
--- a/cppe/src/IceE/BasicStream.cpp
+++ b/cppe/src/IceE/BasicStream.cpp
@@ -177,36 +177,6 @@ IceInternal::BasicStream::startSeq(int numElements, int minSize)
}
}
-//
-// Check, given the number of elements requested for this sequence,
-// that this sequence, plus the sum of the sizes of the remaining
-// number of elements of all enclosing sequences, would still fit
-// within the message.
-//
-void
-IceInternal::BasicStream::checkSeq()
-{
- checkSeq(static_cast<int>(b.end() - i));
-}
-
-void
-IceInternal::BasicStream::checkSeq(int bytesLeft)
-{
- int size = 0;
- SeqData* sd = _seqDataStack;
- do
- {
- size += (sd->numElements - 1) * sd->minSize;
- sd = sd->previous;
- }
- while(sd);
-
- if(size > bytesLeft)
- {
- throw UnmarshalOutOfBoundsException(__FILE__, __LINE__);
- }
-}
-
void
IceInternal::BasicStream::checkFixedSeq(int numElements, int elemSize)
{