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(); } }
/// <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()); } }
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()); } }
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()); } } }
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); }
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; }
/// <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(); } }
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; }