hdsdump.F4FOldMethod.ReadBoxHeader(ref byte[], ref long, ref string, ref long)

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 7

1. Example

Project: hdsdump
Source File: F4FOldMethod.cs
View license
bool 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;
        }

2. Example

Project: hdsdump
Source File: F4FOldMethod.cs
View license
private void UpdateBootstrapInfo(string bootstrapUrl) {
            int fragNum = fragCount;
       /n ..... /n //View Source file for more details /n }

3. Example

Project: hdsdump
Source File: F4FOldMethod.cs
View license
private void ParseBootstrapBox(ref byte[] bootstrapInfo, long pos) {
#pragma warning disable 0219
  /n ..... /n //View Source file for more details /n }

4. Example

Project: hdsdump
Source File: F4FOldMethod.cs
View license
private void DecodeFragment(ref byte[] frag, bool testDecode = false) {
            if (frag == null/n ..... /n //View Source file for more details /n }

5. Example

Project: hdsdump
Source File: F4FOldMethod.cs
View license
private void ParseManifest(string manifestUrl) {
#pragma warning disable 0219
            string bas/n ..... /n //View Source file for more details /n }