hdsdump.F4FOldMethod.ReadInt32(ref byte[], long)

Here are the examples of the csharp api class hdsdump.F4FOldMethod.ReadInt32(ref byte[], 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
public static long ReadInt64(ref byte[] bytesData, long pos) {
            uint iValLo = ReadInt32(ref bytesData, pos + 4);
            uint iValHi = ReadInt32(ref bytesData, pos + 0);
            long iVal = iValLo + (iValHi * 4294967296);
            return iVal;
        }

2. Example

Project: hdsdump
Source File: F4FOldMethod.cs
View license
private static void ReadBoxHeader(ref byte[] bytesData, ref long pos, ref string boxType, ref long boxSize) {
            boxSize = ReadInt32(ref bytesData, pos);
            boxType = ReadStringBytes(ref bytesData, pos + 4, 4);
            if (boxSize == 1) {
                boxSize = ReadInt64(ref bytesData, pos + 8) - 16;
                pos += 16;
            } else {
                boxSize -= 8;
                pos += 8;
            }
        }

3. Example

Project: hdsdump
Source File: F4FOldMethod.cs
View license
private void ParseAsrtBox(ref byte[] asrt, long pos) {
#pragma warning disable 0219
            byte version = ReadByte(ref asrt, pos);
            int flags = (int)ReadInt24(ref asrt, pos + 1);
            int qualityEntryCount = ReadByte(ref asrt, pos + 4);
#pragma warning restore 0219
            this.segTable.Clear();
            pos += 5;
            for (int i = 0; i < qualityEntryCount; i++) {
                this._qualitySegmentUrlModifiers.Add(ReadString(ref asrt, ref pos));
            }
            int segCount = (int)ReadInt32(ref asrt, pos);
            pos += 4;
            Program.DebugLog(String.Format("{0}:\n\n {1,-8}{2,-10}", "Segment Entries", "Number", "Fragments"));
            for (int i = 0; i < segCount; i++) {
                int firstSegment = (int)ReadInt32(ref asrt, pos);
                Segment segEntry = new Segment() {
                    firstSegment        = firstSegment,
                    fragmentsPerSegment = (int)ReadInt32(ref asrt, pos + 4)
                };
                if ((segEntry.fragmentsPerSegment & 0x80000000) > 0)
                    segEntry.fragmentsPerSegment = 0;
                pos += 8;
                this.segTable.Add(segEntry);
                Program.DebugLog(String.Format(" {0,-8}{1,-10}", segEntry.firstSegment, segEntry.fragmentsPerSegment));
            }
            Program.DebugLog("");
        }

4. Example

Project: hdsdump
Source File: F4FOldMethod.cs
View license
private void ParseAfrtBox(ref byte[] afrt, long pos) {
            this.fragTable.Clear();
#pragma w/n ..... /n //View Source file for more details /n }

5. 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 }