mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Revert "Merge pull request #1177 from Kelimion/new_clone"
This reverts commitefa513262e, reversing changes made todaccfca11d.
This commit is contained in:
@@ -56,11 +56,9 @@ Error :: union {
|
||||
as it may involve an I/O error, a Deflate error, etc.
|
||||
*/
|
||||
image.Error,
|
||||
io.Error,
|
||||
}
|
||||
|
||||
General_Error :: enum {
|
||||
None = 0,
|
||||
File_Not_Found,
|
||||
Cannot_Open_File,
|
||||
File_Too_Short,
|
||||
@@ -71,6 +69,7 @@ General_Error :: enum {
|
||||
Incompatible_Options,
|
||||
Unimplemented,
|
||||
|
||||
|
||||
/*
|
||||
Memory errors
|
||||
*/
|
||||
@@ -99,28 +98,7 @@ GZIP_Error :: enum {
|
||||
You can tweak this setting using `-define:COMPRESS_OUTPUT_ALLOCATE_MAX=size_in_bytes`
|
||||
*/
|
||||
Output_Exceeds_COMPRESS_OUTPUT_ALLOCATE_MAX,
|
||||
}
|
||||
|
||||
LZ4_Error :: enum {
|
||||
Generic,
|
||||
Max_Block_Size_Invalid,
|
||||
Block_Mode_Invalid,
|
||||
Content_Checksum_Invalid,
|
||||
Compression_Level_Invalid,
|
||||
Header_Version_Wrong,
|
||||
Block_Checksum_Invalid,
|
||||
Reserved_Flag_Set,
|
||||
Allocation_Failed,
|
||||
Source_Size_Too_Large,
|
||||
Output_Buffer_Too_Small,
|
||||
Frame_Header_Incomplete,
|
||||
Frame_Type_Unknown,
|
||||
Frame_Type_Wrong,
|
||||
Frame_Size_Wrong,
|
||||
Source_Input_Wrong,
|
||||
Decompression_Failed,
|
||||
Header_Checksum_Invalid,
|
||||
Frame_Decoding_Already_Started,
|
||||
}
|
||||
|
||||
ZIP_Error :: enum {
|
||||
@@ -147,6 +125,7 @@ Deflate_Error :: enum {
|
||||
BType_3,
|
||||
}
|
||||
|
||||
|
||||
// General I/O context for ZLIB, LZW, etc.
|
||||
Context_Memory_Input :: struct #packed {
|
||||
input_data: []u8,
|
||||
|
||||
Reference in New Issue
Block a user