Here are the examples of the csharp api class hdsdump.F4FOldMethod.Write2File(string, ref byte[], System.IO.FileMode, long, long) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
View licenseprivate void WriteFlvHeader(string outFile) { filesize = 0; byte[] flvHeader = new byte[] { 0x46, 0x4c, 0x56, 0x01, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00 }; if (hasVideo) flvHeader[4] |= 0x01; if (hasAudio) flvHeader[4] |= 0x04; Write2File(outFile, ref flvHeader, FileMode.Create); if (metadata) WriteMetadata(outFile); FLVHeaderWritten = true; }
0
2. Example
View licenseprivate 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); } }
0
3. Example
View licenseprivate void DecodeFragment(ref byte[] frag, bool testDecode = false) { if (frag == null/n ..... /n //View Source file for more details /n }