You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 23:56:30 +09:00
NetIncomingMessage.PositionInBytes added
This commit is contained in:
@@ -41,6 +41,14 @@ namespace Lidgren.Network
|
|||||||
set { m_readPosition = (int)value; }
|
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()
|
static NetIncomingMessage()
|
||||||
{
|
{
|
||||||
Type[] integralTypes = typeof(Byte).Assembly.GetTypes();
|
Type[] integralTypes = typeof(Byte).Assembly.GetTypes();
|
||||||
|
|||||||
Reference in New Issue
Block a user