summaryrefslogtreecommitdiff
path: root/dotnet/Qpid.Codec/Demux
diff options
context:
space:
mode:
authorSteven Shaw <steshaw@apache.org>2006-12-12 17:36:17 +0000
committerSteven Shaw <steshaw@apache.org>2006-12-12 17:36:17 +0000
commitb10ee442673d6d9c8abb46bd7a0606364930130d (patch)
tree07827981760e15f8dcf5f5af892c3a0bad2eba66 /dotnet/Qpid.Codec/Demux
parent7d0a7581134379324b36d78f8c49dcd793d1ab1e (diff)
downloadqpid-python-b10ee442673d6d9c8abb46bd7a0606364930130d.tar.gz
QPID-139. Initial (re)port of MINA's bytebuffer abstraction. Now includes the autoexpand feature. References to java.nio.Buffer were replaced with FixedByteBuffer and necessary methods added and implemented. FixedByteBuffer delegates to our existing HeapByteBuffer.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486248 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dotnet/Qpid.Codec/Demux')
-rw-r--r--dotnet/Qpid.Codec/Demux/DemuxingProtocolCodecFactory.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/dotnet/Qpid.Codec/Demux/DemuxingProtocolCodecFactory.cs b/dotnet/Qpid.Codec/Demux/DemuxingProtocolCodecFactory.cs
index 8a58eecda4..6577909cff 100644
--- a/dotnet/Qpid.Codec/Demux/DemuxingProtocolCodecFactory.cs
+++ b/dotnet/Qpid.Codec/Demux/DemuxingProtocolCodecFactory.cs
@@ -217,8 +217,8 @@ namespace Qpid.Codec.Demux
for (int i = decoders.Length - 1; i >= 0; i --)
{
IMessageDecoder decoder = decoders[i];
- int limit = input.Limit;
- int pos = input.Position;
+ int limit = input.limit();
+ int pos = input.position();
try
{
@@ -226,8 +226,8 @@ namespace Qpid.Codec.Demux
}
finally
{
- input.Position = pos;
- input.Limit = limit;
+ input.position(pos);
+ input.limit(limit);
}
if (result == MessageDecoderResult.OK)
@@ -248,7 +248,7 @@ namespace Qpid.Codec.Demux
if (undecodables == _decoders.Length)
{
// Throw an exception if all decoders cannot decode data.
- input.Position = input.Limit; // Skip data
+ input.position(input.limit()); // Skip data
throw new ProtocolDecoderException(
"No appropriate message decoder: " + input.HexDump);
}