WriteLELong() public method

Write a long in little endian byte order.
public WriteLELong ( long value ) : void
value long The value to write.
return void
コード例 #1
0
        public byte[] GetData()
        {
            //IL_0000: Unknown result type (might be due to invalid IL or missing references)
            //IL_0006: Expected O, but got Unknown
            MemoryStream val = new MemoryStream();

            try
            {
                ZipHelperStream zipHelperStream = new ZipHelperStream((Stream)(object)val);
                try
                {
                    zipHelperStream.IsStreamOwner = false;
                    zipHelperStream.WriteLEInt(0);
                    zipHelperStream.WriteLEShort(1);
                    zipHelperStream.WriteLEShort(24);
                    zipHelperStream.WriteLELong(_lastModificationTime.ToFileTime());
                    zipHelperStream.WriteLELong(_lastAccessTime.ToFileTime());
                    zipHelperStream.WriteLELong(_createTime.ToFileTime());
                    return(val.ToArray());
                }
                finally
                {
                    ((global::System.IDisposable)zipHelperStream)?.Dispose();
                }
            }
            finally
            {
                ((global::System.IDisposable)val)?.Dispose();
            }
        }
コード例 #2
0
ファイル: ZipExtraData.cs プロジェクト: 287396159/WQWORK
 /// <summary>
 /// Get the binary data representing this instance.
 /// </summary>
 /// <returns>The raw binary data representing this instance.</returns>
 public byte[] GetData()
 {
     using (MemoryStream ms = new MemoryStream())
         using (ZipHelperStream helperStream = new ZipHelperStream(ms)) {
             helperStream.IsStreamOwner = false;
             helperStream.WriteLEInt(0);                   // Reserved
             helperStream.WriteLEShort(1);                 // Tag
             helperStream.WriteLEShort(24);                // Length = 3 x 8.
             helperStream.WriteLELong(_lastModificationTime.ToFileTimeUtc());
             helperStream.WriteLELong(_lastAccessTime.ToFileTimeUtc());
             helperStream.WriteLELong(_createTime.ToFileTimeUtc());
             return(ms.ToArray());
         }
 }
コード例 #3
0
 public byte[] GetData()
 {
     using (MemoryStream ms = new MemoryStream())
         using (ZipHelperStream helperStream = new ZipHelperStream(ms))
         {
             helperStream.IsStreamOwner = false;
             helperStream.WriteLEInt(0);
             helperStream.WriteLEShort(1);
             helperStream.WriteLEShort(24);
             helperStream.WriteLELong(lastModificationTime_.ToFileTime());
             helperStream.WriteLELong(lastAccessTime_.ToFileTime());
             helperStream.WriteLELong(createTime_.ToFileTime());
             return(ms.ToArray());
         }
 }
コード例 #4
0
ファイル: NTTaggedData.cs プロジェクト: ramon1984/word_reader
 public byte[] GetData()
 {
     using (MemoryStream memoryStream = new MemoryStream())
     {
         using (ZipHelperStream zipHelperStream = new ZipHelperStream(memoryStream))
         {
             zipHelperStream.IsStreamOwner = false;
             zipHelperStream.WriteLEInt(0);
             zipHelperStream.WriteLEShort(1);
             zipHelperStream.WriteLEShort(24);
             zipHelperStream.WriteLELong(_lastModificationTime.ToFileTime());
             zipHelperStream.WriteLELong(_lastAccessTime.ToFileTime());
             zipHelperStream.WriteLELong(_createTime.ToFileTime());
             return(memoryStream.ToArray());
         }
     }
 }
コード例 #5
0
 public byte[] GetData()
 {
     byte[] buffer;
     using (MemoryStream stream = new MemoryStream())
     {
         using (ZipHelperStream stream2 = new ZipHelperStream(stream))
         {
             stream2.IsStreamOwner = false;
             stream2.WriteLEInt(0);
             stream2.WriteLEShort(1);
             stream2.WriteLEShort(0x18);
             stream2.WriteLELong(this.lastModificationTime_.ToFileTime());
             stream2.WriteLELong(this.lastAccessTime_.ToFileTime());
             stream2.WriteLELong(this.createTime_.ToFileTime());
             buffer = stream.ToArray();
         }
     }
     return(buffer);
 }
コード例 #6
0
ファイル: NTTaggedData.cs プロジェクト: huaminglee/myyyyshop
 public byte[] GetData()
 {
     byte[] buffer;
     using (MemoryStream stream = new MemoryStream())
     {
         using (ZipHelperStream stream2 = new ZipHelperStream(stream))
         {
             stream2.IsStreamOwner = false;
             stream2.WriteLEInt(0);
             stream2.WriteLEShort(1);
             stream2.WriteLEShort(0x18);
             stream2.WriteLELong(this._lastModificationTime.ToFileTime());
             stream2.WriteLELong(this._lastAccessTime.ToFileTime());
             stream2.WriteLELong(this._createTime.ToFileTime());
             buffer = stream.ToArray();
         }
     }
     return buffer;
 }
コード例 #7
0
ファイル: ZipExtraData.cs プロジェクト: nagyist/SparkleDotNET
		/// <summary>
		/// Get the binary data representing this instance.
		/// </summary>
		/// <returns>The raw binary data representing this instance.</returns>
		public byte[] GetData()
		{
			using (MemoryStream ms = new MemoryStream())
			using (ZipHelperStream helperStream = new ZipHelperStream(ms))
			{
				helperStream.IsStreamOwner = false;
				helperStream.WriteLEInt(0);       // Reserved
				helperStream.WriteLEShort(1);     // Tag
				helperStream.WriteLEShort(24);    // Length = 3 x 8.
				helperStream.WriteLELong(lastModificationTime_.ToFileTime());
				helperStream.WriteLELong(lastAccessTime_.ToFileTime());
				helperStream.WriteLELong(createTime_.ToFileTime());
				return ms.ToArray();
			}
		}
コード例 #8
0
ファイル: NTTaggedData.cs プロジェクト: GameDiffs/TheForest
 public byte[] GetData()
 {
     byte[] result;
     using (MemoryStream memoryStream = new MemoryStream())
     {
         using (ZipHelperStream zipHelperStream = new ZipHelperStream(memoryStream))
         {
             zipHelperStream.IsStreamOwner = false;
             zipHelperStream.WriteLEInt(0);
             zipHelperStream.WriteLEShort(1);
             zipHelperStream.WriteLEShort(24);
             zipHelperStream.WriteLELong(this._lastModificationTime.ToFileTime());
             zipHelperStream.WriteLELong(this._lastAccessTime.ToFileTime());
             zipHelperStream.WriteLELong(this._createTime.ToFileTime());
             result = memoryStream.ToArray();
         }
     }
     return result;
 }