Here are the examples of the csharp api class hdsdump.F4FOldMethod.WriteBoxSize(ref byte[], long, string, long) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
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; }