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

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

1 Example 7

1. 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);
            }
        }