public static int ReadInt(this byte[] buffer, int offset, Endianity endianity) { int host = ByteArrayExtensions.ReadInt(buffer, offset); if (ByteArrayExtensions.IsWrongEndianity(endianity)) { host = IPAddress.HostToNetworkOrder(host); } return(host); }
internal int ReadInt(int offset, Endianity endianity) { return(ByteArrayExtensions.ReadInt(this.Buffer, this.StartOffset + offset, endianity)); }
public static uint ReadUInt(this byte[] buffer, int offset, Endianity endianity) { return((uint)ByteArrayExtensions.ReadInt(buffer, offset, endianity)); }