V2/Cet/IO/Cet.IO/ByteArray/ByteArrayHelpers.Convert.cs
/// <summary>
/// Read an <see cref="System.Int64"/> from the given byte array
/// starting from the specified offset, 
/// and composed as the Big-endian format
/// </summary>
/// <param name="buffer">The source byte array</param>
/// <param name="offset">The index of the first byte to be considered</param>
/// <returns>The resulting value</returns>
Read an  from the given byte array
starting from the specified offset,
and composed as the Big-endian format
Read an from the given byte array starting from the specified offset and composed as the Big - endian format
public static Int64 ReadInt64BE(
            byte[] buffer,
            int offset)
        {
            return
                (uint)ReadInt32BE(buffer, offset + 4) |
                ((long)ReadInt32BE(buffer, offset) << 32);
        }
public static Int64 ReadInt64BE ( byte [ ] buffer , int offset ) { return ( uint ) ReadInt32BE ( buffer , offset + 4 ) | ( ( long ) ReadInt32BE ( buffer , offset ) << 32 ) ; }
Read an  from the given byte array
starting from the specified offset,
and composed as the Big-endian format
Read an from the given byte array starting from the specified offset and composed as the Big - endian format
The resulting value
The resulting value
buffer
byte[]
The source byte array
The source byte array
offset
int
The index of the first byte to be considered
The index of the first byte to be considered