Here are the examples of the csharp api class hdsdump.F4FOldMethod.ReadBoxHeader(ref byte[], ref long, ref string, ref long) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
5 Examples
0
1. Example
View licensebool VerifyFragment(ref byte[] frag) { string boxType = ""; long boxSize = 0; long fragPos = 0; /* Some moronic servers add wrong boxSize in header causing fragment verification * * to fail so we have to fix the boxSize before processing the fragment. */ while (fragPos < frag.Length) { ReadBoxHeader(ref frag, ref fragPos, ref boxType, ref boxSize); if (boxType == "mdat") { if ((fragPos + boxSize) > frag.Length) { boxSize = frag.Length - fragPos; WriteBoxSize(ref frag, fragPos, boxType, boxSize); } return true; } fragPos += boxSize; } return false; }
0
2. Example
View licenseprivate void UpdateBootstrapInfo(string bootstrapUrl) { int fragNum = fragCount; /n ..... /n //View Source file for more details /n }
0
3. Example
View licenseprivate void ParseBootstrapBox(ref byte[] bootstrapInfo, long pos) { #pragma warning disable 0219 /n ..... /n //View Source file for more details /n }
0
4. Example
View licenseprivate void DecodeFragment(ref byte[] frag, bool testDecode = false) { if (frag == null/n ..... /n //View Source file for more details /n }
0
5. Example
View licenseprivate void ParseManifest(string manifestUrl) { #pragma warning disable 0219 string bas/n ..... /n //View Source file for more details /n }