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

Here are the examples of the csharp api class hdsdump.F4FOldMethod.WriteInt32(ref byte[], long, long) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

1. Example

Project: hdsdump
Source File: F4FOldMethod.cs
View license
private static void WriteBoxSize(ref byte[] bytesData, long pos, string type, long size) {
            string realtype = Encoding.ASCII.GetString(bytesData, (int)pos - 4, 4);
            if (realtype == type) {
                WriteInt32(ref bytesData, pos - 8, size);
            } else {
                WriteInt32(ref bytesData, pos - 8, 0);
                WriteInt32(ref bytesData, pos - 4, size);
            }
        }

2. Example

Project: hdsdump
Source File: F4FOldMethod.cs
View license
private void WriteMetadata(string outFile) {
            if ((this.selectedMedia.metadata != null) && (this.selectedMedia.metadata.Length > 0)) {
                int mediaMetadataSize = this.selectedMedia.metadata.Length;
                byte[] metadata = new byte[this.tagHeaderLen + mediaMetadataSize + 4];
                WriteByte(ref metadata, 0, Constants.SCRIPT_DATA);
                WriteInt24(ref metadata, 1, mediaMetadataSize);
                WriteInt24(ref metadata, 4, 0);
                WriteInt32(ref metadata, 7, 0);
                ByteBlockCopy(ref metadata, this.tagHeaderLen, ref this.selectedMedia.metadata, 0, mediaMetadataSize);
                WriteByte(ref metadata, this.tagHeaderLen + mediaMetadataSize - 1, 0x09);
                WriteInt32(ref metadata, this.tagHeaderLen + mediaMetadataSize, this.tagHeaderLen + mediaMetadataSize);
                this.Write2File(outFile, ref metadata);
            }
        }

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