public static long ReadLong(this byte[] buffer, int offset, Endianity endianity) { long host = ByteArrayExtensions.ReadLong(buffer, offset); if (ByteArrayExtensions.IsWrongEndianity(endianity)) { host = IPAddress.HostToNetworkOrder(host); } return(host); }
public static ulong ReadULong(this byte[] buffer, int offset, Endianity endianity) { return((ulong)ByteArrayExtensions.ReadLong(buffer, offset, endianity)); }