Hello World
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //more details at: https://blog.aggregatedintelligence.com/2020/09/d365-finance-and-operations-odata-query.html | |
| var baseUrl = "https://myDomain.sandbox.operations.dynamics.com"; //a trailing slash here will cause a "No P3P Policy defined" error | |
| var tenantId = "TENANTID AS A GUID HERE"; | |
| string applicationId = "APPLICATION GUID HERE"; | |
| string clientSecret = "CLIENT SECRET HERE"; | |
| string api = "data/"; | |
| var authorityUrl = $"https://login.windows.net/{tenantId}"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class Lz77 | |
| { | |
| private const int RingBufferSize = 4096; | |
| private const int UpperMatchLength = 18; | |
| private const int LowerMatchLength = 2; | |
| private const int None = RingBufferSize; | |
| private static readonly int[] Parent = new int[RingBufferSize + 1]; | |
| private static readonly int[] LeftChild = new int[RingBufferSize + 1]; | |
| private static readonly int[] RightChild = new int[RingBufferSize + 257]; | |
| private static readonly ushort[] Buffer = new ushort[RingBufferSize + UpperMatchLength - 1]; |
NewerOlder