BTDB.StreamLayer.AbstractBufferedReader.ReadByteArrayRaw C# (CSharp) Method

ReadByteArrayRaw() public method

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

Usage Example

コード例 #1
0
 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();
 }