BinderTool.Program.TryGetSignature(System.IO.MemoryStream, System.Text.Encoding, int, int, out string)

Here are the examples of the csharp api class BinderTool.Program.TryGetSignature(System.IO.MemoryStream, System.Text.Encoding, int, int, out string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: BinderTool
Source File: Program.cs
View license
private static bool TryGetUnicodeSignature(MemoryStream stream, int signatureLength, out string signature)
        {
            const int unicodeBytesPerChar = 2;
            return TryGetSignature(stream, Encoding.Unicode, unicodeBytesPerChar, signatureLength, out signature);
        }

2. Example

Project: BinderTool
Source File: Program.cs
View license
private static bool TryGetAsciiSignature(MemoryStream stream, int signatureLength, out string signature)
        {
            const int asciiBytesPerChar = 1;
            return TryGetSignature(stream, Encoding.ASCII, asciiBytesPerChar, signatureLength, out signature);
        }