1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 14:46:29 +09:00

NetIncomingMessage.PositionInBytes added

This commit is contained in:
lidgren
2010-09-12 20:04:27 +00:00
parent e38bdfeab6
commit 12e9ca6e27

View File

@@ -41,6 +41,14 @@ namespace Lidgren.Network
set { m_readPosition = (int)value; }
}
/// <summary>
/// Gets the position in the buffer in bytes; note that the bits of the first returned byte may already have been read - check the Position property to make sure.
/// </summary>
public int PositionInBytes
{
get { return (int)(m_readPosition / 8); }
}
static NetIncomingMessage()
{
Type[] integralTypes = typeof(Byte).Assembly.GetTypes();