NeovimClient/NeovimClient.cs
/// <summary>
/// Converts any of the Ext types of Neovim to a long
/// </summary>
/// <param name="bytes">The Ext type objects body</param>
/// <returns>the value of the Ext type</returns>
Converts any of the Ext types of Neovim to a long
Converts any of the Ext types of Neovim to a long
private long ExtToInt64(byte[] bytes)
        {
            if (bytes.Length < 8)
                Array.Resize(ref bytes, 8);
            if (!BitConverter.IsLittleEndian)
                Array.Reverse(bytes);
            return BitConverter.ToInt64(bytes, 0);
        }
private long ExtToInt64 ( byte [ ] bytes ) { if ( bytes . Length < 8 ) Array . Resize ( ref bytes , 8 ) ; if ( ! BitConverter . IsLittleEndian ) Array . Reverse ( bytes ) ; return BitConverter . ToInt64 ( bytes , 0 ) ; }
Converts any of the Ext types of Neovim to a long
Converts any of the Ext types of Neovim to a long
the value of the Ext type
the value of the Ext type
bytes
byte[]
The Ext type objects body
The Ext type objects body