1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 06:36:30 +09:00

NetIncomingMessage and NetOutgoingMessage now implements Stream as base class

This commit is contained in:
lidgren
2010-07-13 14:28:34 +00:00
parent 0a65259e86
commit 551dca6d0e
7 changed files with 35 additions and 8 deletions

View File

@@ -35,10 +35,10 @@ namespace Lidgren.Network
/// <summary>
/// Gets or sets the read position in the buffer, in bits (not bytes)
/// </summary>
public int Position
public override long Position // override of Stream property
{
get { return m_readPosition; }
set { m_readPosition = value; }
get { return (long)m_readPosition; }
set { m_readPosition = (int)value; }
}
static NetIncomingMessage()