public IBufferReader Load(string uri) { Stream stream; if (uri == null) { var range = GlbParser.GetBinChunk(glbPath); stream = new SubStream(File.OpenRead(glbPath), range.start, range.length); } else { stream = File.OpenRead(Path.Combine(uriBase, uri)); } return new BufferedStreamReader(stream, bufferSize, stream.Length); }
public void TestV2Bin() { var file = GetGlb2File(); GlbParser.GetBinChunk(file); }