BTDB.StreamLayer.AbstractBufferedReader.ReadByteArrayRaw C# (CSharp) Méthode

ReadByteArrayRaw() public méthode

public ReadByteArrayRaw ( int len ) : byte[]
len int
Résultat byte[]
        public byte[] ReadByteArrayRaw(int len)
        {
            var res = new byte[len];
            ReadBlock(res);
            return res;
        }

Usage Example

 internal static void SkipHeader(AbstractBufferedReader reader)
 {
     var magic = reader.ReadByteArrayRaw(MagicStartOfFile.Length);
     var withGuid = BitArrayManipulation.CompareByteArray(magic, magic.Length,
         MagicStartOfFileWithGuid, MagicStartOfFileWithGuid.Length) == 0;
     if (withGuid) reader.SkipGuid();
 }