-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Implement Tar APIs #67883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Tar APIs #67883
Changes from 1 commit
e9fbcc9
0731cb2
8f1f1af
10df463
da4af67
8710ceb
76e484c
c9c4d85
e0dafda
5b8392b
a16d4d9
7ca674e
560b789
b3e5988
c22a8e7
d3e4f31
23caa17
e0b0442
b682576
9fd01c3
7b0d8c3
f1d9b7b
0980fbd
a28f3e5
7f2e516
3f71b60
cb855ed
dd40447
9a28f12
40097c6
b1e8dfc
c11e434
255ec96
8ae7788
d3cbdd2
6b5d078
19eb98d
69ca3e7
b1a2d5a
fb644dd
cd40d62
0ee2c33
58a3476
fc0e568
5d81577
a52dfe4
b227fa9
5745b9f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…entry has a long link and a long path. Add logic to handle that and tests to verify this.
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,8 +15,11 @@ namespace System.Formats.Tar | |
| // Documentation: https://www.freebsd.org/cgi/man.cgi?query=tar&sektion=5 | ||
| internal partial struct TarHeader | ||
|
||
| { | ||
| // POSIX fields (shared by Ustar and PAX) | ||
| private const string UstarMagic = "ustar\0"; | ||
| private const string UstarVersion = "00"; | ||
|
|
||
| // GNU-specific fields | ||
| private const string GnuMagic = "ustar "; | ||
| private const string GnuVersion = " \0"; | ||
|
|
||
|
|
@@ -35,9 +38,6 @@ internal partial struct TarHeader | |
| private const string PaxEaDevMajor = "devmajor"; | ||
| private const string PaxEaDevMinor = "devminor"; | ||
|
|
||
| private const int ZeroChar = 0x30; | ||
|
|
||
| //private TarBlocks _blocks; | ||
| internal Stream? _dataStream; | ||
|
|
||
| // Position in the stream where the data ends in this header. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adamsitnik, an example for where a StringStream would be useful.