From 63628550708a616c5c58bc5c707db1e7fd9cd7c2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 14 Nov 2012 23:55:29 +0000 Subject: Strings, bools, and ints all seem fine, the more complex container types are coming next, and will implement the full range of appropriate interfaces. --- cs-dotnet/src/gatsinteger.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cs-dotnet/src/gatsinteger.cs') diff --git a/cs-dotnet/src/gatsinteger.cs b/cs-dotnet/src/gatsinteger.cs index cbb552e..9a9abbe 100644 --- a/cs-dotnet/src/gatsinteger.cs +++ b/cs-dotnet/src/gatsinteger.cs @@ -16,7 +16,7 @@ namespace Com.Xagasoft.Gats return Value.ToString(); } - public override void Read( Stream s, byte cType ) + public override void Read( Stream s, char cType ) { Value = ReadPackedInt( s ); } @@ -35,7 +35,7 @@ namespace Com.Xagasoft.Gats b = s.ReadByte(); if( b == -1 ) - throw new GatsException("Premature end of stream encountered."); + throw new GatsException( GatsException.Type.PrematureEnd ); bNeg = (b&0x40) == 0x40; rOut |= ((long)b)&0x3F; int c = 0; @@ -43,7 +43,7 @@ namespace Com.Xagasoft.Gats { b = s.ReadByte(); if( b == -1 ) - throw new GatsException("Premature end of stream encountered."); + throw new GatsException( GatsException.Type.PrematureEnd ); rOut |= (long)(b&0x7F) << (6+7*(c++)); } if( bNeg ) -- cgit v1.2.3