public void NonSeekableStreamSkip2() { using (var ms = TestFiles.MakeReaderTest()) { using (var nss = new NonSeekableStream(ms)) { var reader = new NbtReader(nss); reader.ReadToFollowing(); reader.Skip(); } } }
public void NonSeekableStreamSkip1() { byte[] fileBytes = File.ReadAllBytes("TestFiles/bigtest.nbt"); using (var ms = new MemoryStream(fileBytes)) { using (var nss = new NonSeekableStream(ms)) { var reader = new NbtReader(nss); reader.ReadToFollowing(); reader.Skip(); } } }