-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: switched out dataview to uint8arrays
- Loading branch information
1 parent
00233d1
commit 76fe731
Showing
8 changed files
with
264 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const BLOCK_SIZE = 512; | ||
export const USTAR_NAME = 'ustar\0'; | ||
export const USTAR_NAME = 'ustar'; | ||
export const USTAR_VERSION = '00'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,49 @@ | ||
import { AbstractError } from '@matrixai/errors'; | ||
|
||
class ErrorVirtualTar<T> extends AbstractError<T> { | ||
class ErrorTar<T> extends AbstractError<T> { | ||
static description = 'VirtualTar errors'; | ||
} | ||
|
||
class ErrorVirtualTarUndefinedBehaviour<T> extends ErrorVirtualTar<T> { | ||
class ErrorVirtualTarUndefinedBehaviour<T> extends ErrorTar<T> { | ||
static description = 'You should never see this error'; | ||
} | ||
|
||
class ErrorVirtualTarInvalidFileName<T> extends ErrorVirtualTar<T> { | ||
static description = 'The provided file name is invalid'; | ||
class ErrorTarGenerator<T> extends ErrorTar<T> { | ||
static description = 'VirtualTar genereator errors'; | ||
} | ||
|
||
class ErrorVirtualTarInvalidHeader<T> extends ErrorVirtualTar<T> { | ||
static description = 'The header has invalid data'; | ||
class ErrorTarGeneratorInvalidFileName<T> extends ErrorTarGenerator<T> { | ||
static description = 'The provided file name is invalid'; | ||
} | ||
|
||
class ErrorVirtualTarInvalidStat<T> extends ErrorVirtualTar<T> { | ||
class ErrorTarGeneratorInvalidStat<T> extends ErrorTarGenerator<T> { | ||
static description = 'The stat contains invalid data'; | ||
} | ||
|
||
class ErrorVirtualTarBlockSize<T> extends ErrorVirtualTar<T> { | ||
class ErrorTarParser<T> extends ErrorTar<T> { | ||
static description = 'VirtualTar parsing errors'; | ||
} | ||
|
||
class ErrorTarParserInvalidHeader<T> extends ErrorTarParser<T> { | ||
static description = 'The checksum did not match the header'; | ||
} | ||
|
||
class ErrorTarParserBlockSize<T> extends ErrorTarParser<T> { | ||
static description = 'The block size is incorrect'; | ||
} | ||
|
||
class ErrorVirtualTarEndOfArchive<T> extends ErrorVirtualTar<T> { | ||
class ErrorTarParserEndOfArchive<T> extends ErrorTarParser<T> { | ||
static description = 'No data can come after an end-of-archive marker'; | ||
} | ||
|
||
export { | ||
ErrorVirtualTar, | ||
ErrorTar, | ||
ErrorTarGenerator, | ||
ErrorVirtualTarUndefinedBehaviour, | ||
ErrorVirtualTarInvalidFileName, | ||
ErrorVirtualTarInvalidHeader, | ||
ErrorVirtualTarInvalidStat, | ||
ErrorVirtualTarBlockSize, | ||
ErrorVirtualTarEndOfArchive, | ||
ErrorTarGeneratorInvalidFileName, | ||
ErrorTarGeneratorInvalidStat, | ||
ErrorTarParser, | ||
ErrorTarParserInvalidHeader, | ||
ErrorTarParserBlockSize, | ||
ErrorTarParserEndOfArchive, | ||
}; |
Oops, something went wrong.