@ohos-ports/lmdb 2.5.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +536 -0
  3. package/SECURITY.md +12 -0
  4. package/binding.gyp +111 -0
  5. package/build/Release/lmdb.node +0 -0
  6. package/caching.js +156 -0
  7. package/dependencies/lmdb/libraries/liblmdb/COPYRIGHT +20 -0
  8. package/dependencies/lmdb/libraries/liblmdb/Doxyfile +1631 -0
  9. package/dependencies/lmdb/libraries/liblmdb/LICENSE +47 -0
  10. package/dependencies/lmdb/libraries/liblmdb/Makefile +136 -0
  11. package/dependencies/lmdb/libraries/liblmdb/chacha8.c +183 -0
  12. package/dependencies/lmdb/libraries/liblmdb/chacha8.h +14 -0
  13. package/dependencies/lmdb/libraries/liblmdb/crypto.c +121 -0
  14. package/dependencies/lmdb/libraries/liblmdb/intro.doc +192 -0
  15. package/dependencies/lmdb/libraries/liblmdb/lmdb.h +1792 -0
  16. package/dependencies/lmdb/libraries/liblmdb/mdb.c +12429 -0
  17. package/dependencies/lmdb/libraries/liblmdb/mdb_copy.1 +74 -0
  18. package/dependencies/lmdb/libraries/liblmdb/mdb_copy.c +106 -0
  19. package/dependencies/lmdb/libraries/liblmdb/mdb_drop.1 +53 -0
  20. package/dependencies/lmdb/libraries/liblmdb/mdb_drop.c +154 -0
  21. package/dependencies/lmdb/libraries/liblmdb/mdb_dump.1 +94 -0
  22. package/dependencies/lmdb/libraries/liblmdb/mdb_dump.c +333 -0
  23. package/dependencies/lmdb/libraries/liblmdb/mdb_load.1 +97 -0
  24. package/dependencies/lmdb/libraries/liblmdb/mdb_load.c +530 -0
  25. package/dependencies/lmdb/libraries/liblmdb/mdb_stat.1 +83 -0
  26. package/dependencies/lmdb/libraries/liblmdb/mdb_stat.c +276 -0
  27. package/dependencies/lmdb/libraries/liblmdb/midl.c +452 -0
  28. package/dependencies/lmdb/libraries/liblmdb/midl.h +208 -0
  29. package/dependencies/lmdb/libraries/liblmdb/module.c +101 -0
  30. package/dependencies/lmdb/libraries/liblmdb/module.h +16 -0
  31. package/dependencies/lmdb/libraries/liblmdb/mtest.c +178 -0
  32. package/dependencies/lmdb/libraries/liblmdb/mtest2.c +124 -0
  33. package/dependencies/lmdb/libraries/liblmdb/mtest3.c +133 -0
  34. package/dependencies/lmdb/libraries/liblmdb/mtest4.c +168 -0
  35. package/dependencies/lmdb/libraries/liblmdb/mtest5.c +135 -0
  36. package/dependencies/lmdb/libraries/liblmdb/mtest6.c +141 -0
  37. package/dependencies/lmdb/libraries/liblmdb/mtest_enc.c +190 -0
  38. package/dependencies/lmdb/libraries/liblmdb/mtest_enc2.c +189 -0
  39. package/dependencies/lmdb/libraries/liblmdb/mtest_remap.c +177 -0
  40. package/dependencies/lmdb/libraries/liblmdb/sample-bdb.txt +73 -0
  41. package/dependencies/lmdb/libraries/liblmdb/sample-mdb.txt +62 -0
  42. package/dependencies/lmdb/libraries/liblmdb/tooltag +27 -0
  43. package/dependencies/lmdb-data-v1/libraries/liblmdb/COPYRIGHT +20 -0
  44. package/dependencies/lmdb-data-v1/libraries/liblmdb/Doxyfile +1631 -0
  45. package/dependencies/lmdb-data-v1/libraries/liblmdb/LICENSE +47 -0
  46. package/dependencies/lmdb-data-v1/libraries/liblmdb/Makefile +118 -0
  47. package/dependencies/lmdb-data-v1/libraries/liblmdb/intro.doc +192 -0
  48. package/dependencies/lmdb-data-v1/libraries/liblmdb/lmdb.h +1653 -0
  49. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb.c +11359 -0
  50. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_copy.1 +61 -0
  51. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_copy.c +84 -0
  52. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_drop.1 +40 -0
  53. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_drop.c +135 -0
  54. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_dump.1 +81 -0
  55. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_dump.c +319 -0
  56. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_load.1 +84 -0
  57. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_load.c +492 -0
  58. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_stat.1 +70 -0
  59. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_stat.c +264 -0
  60. package/dependencies/lmdb-data-v1/libraries/liblmdb/midl.c +421 -0
  61. package/dependencies/lmdb-data-v1/libraries/liblmdb/midl.h +200 -0
  62. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest.c +177 -0
  63. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest2.c +124 -0
  64. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest3.c +133 -0
  65. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest4.c +168 -0
  66. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest5.c +135 -0
  67. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest6.c +141 -0
  68. package/dependencies/lmdb-data-v1/libraries/liblmdb/sample-bdb.txt +73 -0
  69. package/dependencies/lmdb-data-v1/libraries/liblmdb/sample-mdb.txt +62 -0
  70. package/dependencies/lmdb-data-v1/libraries/liblmdb/tooltag +27 -0
  71. package/dependencies/lz4/LICENSE +11 -0
  72. package/dependencies/lz4/lib/LICENSE +24 -0
  73. package/dependencies/lz4/lib/README.md +137 -0
  74. package/dependencies/lz4/lib/dll/example/README.md +69 -0
  75. package/dependencies/lz4/lib/dll/example/fullbench-dll.sln +25 -0
  76. package/dependencies/lz4/lib/dll/example/fullbench-dll.vcxproj +182 -0
  77. package/dependencies/lz4/lib/dll/liblz4.def +62 -0
  78. package/dependencies/lz4/lib/liblz4-dll.rc.in +35 -0
  79. package/dependencies/lz4/lib/liblz4.pc.in +14 -0
  80. package/dependencies/lz4/lib/lz4.c +2495 -0
  81. package/dependencies/lz4/lib/lz4.h +774 -0
  82. package/dependencies/lz4/lib/lz4frame.c +1899 -0
  83. package/dependencies/lz4/lib/lz4frame.h +623 -0
  84. package/dependencies/lz4/lib/lz4frame_static.h +47 -0
  85. package/dependencies/lz4/lib/lz4hc.c +1615 -0
  86. package/dependencies/lz4/lib/lz4hc.h +413 -0
  87. package/dependencies/lz4/lib/xxhash.c +1030 -0
  88. package/dependencies/lz4/lib/xxhash.h +328 -0
  89. package/dependencies/v8/v8-fast-api-calls-v16.h +791 -0
  90. package/dependencies/v8/v8-fast-api-calls.h +888 -0
  91. package/dict/dict.txt +1 -0
  92. package/dict/dict2.txt +1 -0
  93. package/dist/index.cjs +2478 -0
  94. package/dist/index.cjs.map +1 -0
  95. package/index.d.ts +385 -0
  96. package/index.js +37 -0
  97. package/keys.js +102 -0
  98. package/level.js +27 -0
  99. package/native.js +82 -0
  100. package/node-index.js +28 -0
  101. package/open.js +414 -0
  102. package/package.json +70 -0
  103. package/read.js +590 -0
  104. package/rollup.config.js +12 -0
  105. package/src/compression.cpp +222 -0
  106. package/src/cursor.cpp +344 -0
  107. package/src/dbi.cpp +344 -0
  108. package/src/env.cpp +762 -0
  109. package/src/lmdb-js.cpp +64 -0
  110. package/src/lmdb-js.h +599 -0
  111. package/src/misc.cpp +324 -0
  112. package/src/ordered-binary.cpp +46 -0
  113. package/src/txn.cpp +257 -0
  114. package/src/v8-functions.cpp +166 -0
  115. package/src/windows.c +35 -0
  116. package/src/writer.cpp +452 -0
  117. package/util/RangeIterable.js +141 -0
  118. package/util/set-optional-deps.cjs +10 -0
  119. package/util/when.js +8 -0
  120. package/write.js +882 -0
@@ -0,0 +1,137 @@
1
+ LZ4 - Library Files
2
+ ================================
3
+
4
+ The `/lib` directory contains many files, but depending on project's objectives,
5
+ not all of them are necessary.
6
+
7
+ #### Minimal LZ4 build
8
+
9
+ The minimum required is **`lz4.c`** and **`lz4.h`**,
10
+ which provides the fast compression and decompression algorithms.
11
+ They generate and decode data using the [LZ4 block format].
12
+
13
+
14
+ #### High Compression variant
15
+
16
+ For more compression ratio at the cost of compression speed,
17
+ the High Compression variant called **lz4hc** is available.
18
+ Add files **`lz4hc.c`** and **`lz4hc.h`**.
19
+ This variant also compresses data using the [LZ4 block format],
20
+ and depends on regular `lib/lz4.*` source files.
21
+
22
+
23
+ #### Frame support, for interoperability
24
+
25
+ In order to produce compressed data compatible with `lz4` command line utility,
26
+ it's necessary to use the [official interoperable frame format].
27
+ This format is generated and decoded automatically by the **lz4frame** library.
28
+ Its public API is described in `lib/lz4frame.h`.
29
+ In order to work properly, lz4frame needs all other modules present in `/lib`,
30
+ including, lz4 and lz4hc, and also **xxhash**.
31
+ So it's necessary to include all `*.c` and `*.h` files present in `/lib`.
32
+
33
+
34
+ #### Advanced / Experimental API
35
+
36
+ Definitions which are not guaranteed to remain stable in future versions,
37
+ are protected behind macros, such as `LZ4_STATIC_LINKING_ONLY`.
38
+ As the name strongly implies, these definitions should only be invoked
39
+ in the context of static linking ***only***.
40
+ Otherwise, dependent application may fail on API or ABI break in the future.
41
+ The associated symbols are also not exposed by the dynamic library by default.
42
+ Should they be nonetheless needed, it's possible to force their publication
43
+ by using build macros `LZ4_PUBLISH_STATIC_FUNCTIONS`
44
+ and `LZ4F_PUBLISH_STATIC_FUNCTIONS`.
45
+
46
+
47
+ #### Build macros
48
+
49
+ The following build macro can be selected to adjust source code behavior at compilation time :
50
+
51
+ - `LZ4_FAST_DEC_LOOP` : this triggers a speed optimized decompression loop, more powerful on modern cpus.
52
+ This loop works great on `x86`, `x64` and `aarch64` cpus, and is automatically enabled for them.
53
+ It's also possible to enable or disable it manually, by passing `LZ4_FAST_DEC_LOOP=1` or `0` to the preprocessor.
54
+ For example, with `gcc` : `-DLZ4_FAST_DEC_LOOP=1`,
55
+ and with `make` : `CPPFLAGS+=-DLZ4_FAST_DEC_LOOP=1 make lz4`.
56
+
57
+ - `LZ4_DISTANCE_MAX` : control the maximum offset that the compressor will allow.
58
+ Set to 65535 by default, which is the maximum value supported by lz4 format.
59
+ Reducing maximum distance will reduce opportunities for LZ4 to find matches,
60
+ hence will produce a worse compression ratio.
61
+ However, a smaller max distance can allow compatibility with specific decoders using limited memory budget.
62
+ This build macro only influences the compressed output of the compressor.
63
+
64
+ - `LZ4_DISABLE_DEPRECATE_WARNINGS` : invoking a deprecated function will make the compiler generate a warning.
65
+ This is meant to invite users to update their source code.
66
+ Should this be a problem, it's generally possible to make the compiler ignore these warnings,
67
+ for example with `-Wno-deprecated-declarations` on `gcc`,
68
+ or `_CRT_SECURE_NO_WARNINGS` for Visual Studio.
69
+ This build macro offers another project-specific method
70
+ by defining `LZ4_DISABLE_DEPRECATE_WARNINGS` before including the LZ4 header files.
71
+
72
+ - `LZ4_USER_MEMORY_FUNCTIONS` : replace calls to <stdlib>'s `malloc`, `calloc` and `free`
73
+ by user-defined functions, which must be called `LZ4_malloc()`, `LZ4_calloc()` and `LZ4_free()`.
74
+ User functions must be available at link time.
75
+
76
+ - `LZ4_FORCE_SW_BITCOUNT` : by default, the compression algorithm tries to determine lengths
77
+ by using bitcount instructions, generally implemented as fast single instructions in many cpus.
78
+ In case the target cpus doesn't support it, or compiler intrinsic doesn't work, or feature bad performance,
79
+ it's possible to use an optimized software path instead.
80
+ This is achieved by setting this build macros .
81
+ In most cases, it's not expected to be necessary,
82
+ but it can be legitimately considered for less common platforms.
83
+
84
+ - `LZ4_ALIGN_TEST` : alignment test ensures that the memory area
85
+ passed as argument to become a compression state is suitably aligned.
86
+ This test can be disabled if it proves flaky, by setting this value to 0.
87
+
88
+
89
+ #### Amalgamation
90
+
91
+ lz4 source code can be amalgamated into a single file.
92
+ One can combine all source code into `lz4_all.c` by using following command:
93
+ ```
94
+ cat lz4.c lz4hc.c lz4frame.c > lz4_all.c
95
+ ```
96
+ (`cat` file order is important) then compile `lz4_all.c`.
97
+ All `*.h` files present in `/lib` remain necessary to compile `lz4_all.c`.
98
+
99
+
100
+ #### Windows : using MinGW+MSYS to create DLL
101
+
102
+ DLL can be created using MinGW+MSYS with the `make liblz4` command.
103
+ This command creates `dll\liblz4.dll` and the import library `dll\liblz4.lib`.
104
+ To override the `dlltool` command when cross-compiling on Linux, just set the `DLLTOOL` variable. Example of cross compilation on Linux with mingw-w64 64 bits:
105
+ ```
106
+ make BUILD_STATIC=no CC=x86_64-w64-mingw32-gcc DLLTOOL=x86_64-w64-mingw32-dlltool OS=Windows_NT
107
+ ```
108
+ The import library is only required with Visual C++.
109
+ The header files `lz4.h`, `lz4hc.h`, `lz4frame.h` and the dynamic library
110
+ `dll\liblz4.dll` are required to compile a project using gcc/MinGW.
111
+ The dynamic library has to be added to linking options.
112
+ It means that if a project that uses LZ4 consists of a single `test-dll.c`
113
+ file it should be linked with `dll\liblz4.dll`. For example:
114
+ ```
115
+ $(CC) $(CFLAGS) -Iinclude/ test-dll.c -o test-dll dll\liblz4.dll
116
+ ```
117
+ The compiled executable will require LZ4 DLL which is available at `dll\liblz4.dll`.
118
+
119
+
120
+ #### Miscellaneous
121
+
122
+ Other files present in the directory are not source code. They are :
123
+
124
+ - `LICENSE` : contains the BSD license text
125
+ - `Makefile` : `make` script to compile and install lz4 library (static and dynamic)
126
+ - `liblz4.pc.in` : for `pkg-config` (used in `make install`)
127
+ - `README.md` : this file
128
+
129
+ [official interoperable frame format]: ../doc/lz4_Frame_format.md
130
+ [LZ4 block format]: ../doc/lz4_Block_format.md
131
+
132
+
133
+ #### License
134
+
135
+ All source material within __lib__ directory are BSD 2-Clause licensed.
136
+ See [LICENSE](LICENSE) for details.
137
+ The license is also reminded at the top of each source file.
@@ -0,0 +1,69 @@
1
+ LZ4 Windows binary package
2
+ ====================================
3
+
4
+ #### The package contents
5
+
6
+ - `lz4.exe` : Command Line Utility, supporting gzip-like arguments
7
+ - `dll\liblz4.dll` : The DLL of LZ4 library
8
+ - `dll\liblz4.lib` : The import library of LZ4 library for Visual C++
9
+ - `example\` : The example of usage of LZ4 library
10
+ - `include\` : Header files required with LZ4 library
11
+ - `static\liblz4_static.lib` : The static LZ4 library
12
+
13
+
14
+ #### Usage of Command Line Interface
15
+
16
+ Command Line Interface (CLI) supports gzip-like arguments.
17
+ By default CLI takes an input file and compresses it to an output file:
18
+ ```
19
+ Usage: lz4 [arg] [input] [output]
20
+ ```
21
+ The full list of commands for CLI can be obtained with `-h` or `-H`. The ratio can
22
+ be improved with commands from `-3` to `-16` but higher levels also have slower
23
+ compression. CLI includes in-memory compression benchmark module with compression
24
+ levels starting from `-b` and ending with `-e` with iteration time of `-i` seconds.
25
+ CLI supports aggregation of parameters i.e. `-b1`, `-e18`, and `-i1` can be joined
26
+ into `-b1e18i1`.
27
+
28
+
29
+ #### The example of usage of static and dynamic LZ4 libraries with gcc/MinGW
30
+
31
+ Use `cd example` and `make` to build `fullbench-dll` and `fullbench-lib`.
32
+ `fullbench-dll` uses a dynamic LZ4 library from the `dll` directory.
33
+ `fullbench-lib` uses a static LZ4 library from the `lib` directory.
34
+
35
+
36
+ #### Using LZ4 DLL with gcc/MinGW
37
+
38
+ The header files from `include\` and the dynamic library `dll\liblz4.dll`
39
+ are required to compile a project using gcc/MinGW.
40
+ The dynamic library has to be added to linking options.
41
+ It means that if a project that uses LZ4 consists of a single `test-dll.c`
42
+ file it should be linked with `dll\liblz4.dll`. For example:
43
+ ```
44
+ gcc $(CFLAGS) -Iinclude\ test-dll.c -o test-dll dll\liblz4.dll
45
+ ```
46
+ The compiled executable will require LZ4 DLL which is available at `dll\liblz4.dll`.
47
+
48
+
49
+ #### The example of usage of static and dynamic LZ4 libraries with Visual C++
50
+
51
+ Open `example\fullbench-dll.sln` to compile `fullbench-dll` that uses a
52
+ dynamic LZ4 library from the `dll` directory. The solution works with Visual C++
53
+ 2010 or newer. When one will open the solution with Visual C++ newer than 2010
54
+ then the solution will upgraded to the current version.
55
+
56
+
57
+ #### Using LZ4 DLL with Visual C++
58
+
59
+ The header files from `include\` and the import library `dll\liblz4.lib`
60
+ are required to compile a project using Visual C++.
61
+
62
+ 1. The header files should be added to `Additional Include Directories` that can
63
+ be found in project properties `C/C++` then `General`.
64
+ 2. The import library has to be added to `Additional Dependencies` that can
65
+ be found in project properties `Linker` then `Input`.
66
+ If one will provide only the name `liblz4.lib` without a full path to the library
67
+ the directory has to be added to `Linker\General\Additional Library Directories`.
68
+
69
+ The compiled executable will require LZ4 DLL which is available at `dll\liblz4.dll`.
@@ -0,0 +1,25 @@
1
+ Microsoft Visual Studio Solution File, Format Version 12.00
2
+ # Visual Studio Express 2012 for Windows Desktop
3
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fullbench-dll", "fullbench-dll.vcxproj", "{13992FD2-077E-4954-B065-A428198201A9}"
4
+ EndProject
5
+ Global
6
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
7
+ Debug|Win32 = Debug|Win32
8
+ Debug|x64 = Debug|x64
9
+ Release|Win32 = Release|Win32
10
+ Release|x64 = Release|x64
11
+ EndGlobalSection
12
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
13
+ {13992FD2-077E-4954-B065-A428198201A9}.Debug|Win32.ActiveCfg = Debug|Win32
14
+ {13992FD2-077E-4954-B065-A428198201A9}.Debug|Win32.Build.0 = Debug|Win32
15
+ {13992FD2-077E-4954-B065-A428198201A9}.Debug|x64.ActiveCfg = Debug|x64
16
+ {13992FD2-077E-4954-B065-A428198201A9}.Debug|x64.Build.0 = Debug|x64
17
+ {13992FD2-077E-4954-B065-A428198201A9}.Release|Win32.ActiveCfg = Release|Win32
18
+ {13992FD2-077E-4954-B065-A428198201A9}.Release|Win32.Build.0 = Release|Win32
19
+ {13992FD2-077E-4954-B065-A428198201A9}.Release|x64.ActiveCfg = Release|x64
20
+ {13992FD2-077E-4954-B065-A428198201A9}.Release|x64.Build.0 = Release|x64
21
+ EndGlobalSection
22
+ GlobalSection(SolutionProperties) = preSolution
23
+ HideSolutionNode = FALSE
24
+ EndGlobalSection
25
+ EndGlobal
@@ -0,0 +1,182 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup Label="ProjectConfigurations">
4
+ <ProjectConfiguration Include="Debug|Win32">
5
+ <Configuration>Debug</Configuration>
6
+ <Platform>Win32</Platform>
7
+ </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Debug|x64">
9
+ <Configuration>Debug</Configuration>
10
+ <Platform>x64</Platform>
11
+ </ProjectConfiguration>
12
+ <ProjectConfiguration Include="Release|Win32">
13
+ <Configuration>Release</Configuration>
14
+ <Platform>Win32</Platform>
15
+ </ProjectConfiguration>
16
+ <ProjectConfiguration Include="Release|x64">
17
+ <Configuration>Release</Configuration>
18
+ <Platform>x64</Platform>
19
+ </ProjectConfiguration>
20
+ </ItemGroup>
21
+ <PropertyGroup Label="Globals">
22
+ <ProjectGuid>{13992FD2-077E-4954-B065-A428198201A9}</ProjectGuid>
23
+ <Keyword>Win32Proj</Keyword>
24
+ <RootNamespace>fullbench-dll</RootNamespace>
25
+ <OutDir>$(SolutionDir)bin\$(Platform)_$(Configuration)\</OutDir>
26
+ <IntDir>$(SolutionDir)bin\obj\$(RootNamespace)_$(Platform)_$(Configuration)\</IntDir>
27
+ </PropertyGroup>
28
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
29
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
30
+ <ConfigurationType>Application</ConfigurationType>
31
+ <UseDebugLibraries>true</UseDebugLibraries>
32
+ <CharacterSet>Unicode</CharacterSet>
33
+ </PropertyGroup>
34
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
35
+ <ConfigurationType>Application</ConfigurationType>
36
+ <UseDebugLibraries>true</UseDebugLibraries>
37
+ <CharacterSet>Unicode</CharacterSet>
38
+ </PropertyGroup>
39
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
40
+ <ConfigurationType>Application</ConfigurationType>
41
+ <UseDebugLibraries>false</UseDebugLibraries>
42
+ <WholeProgramOptimization>true</WholeProgramOptimization>
43
+ <CharacterSet>Unicode</CharacterSet>
44
+ </PropertyGroup>
45
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
46
+ <ConfigurationType>Application</ConfigurationType>
47
+ <UseDebugLibraries>false</UseDebugLibraries>
48
+ <WholeProgramOptimization>true</WholeProgramOptimization>
49
+ <CharacterSet>Unicode</CharacterSet>
50
+ </PropertyGroup>
51
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
52
+ <ImportGroup Label="ExtensionSettings">
53
+ </ImportGroup>
54
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
55
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
56
+ </ImportGroup>
57
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
58
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
59
+ </ImportGroup>
60
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
61
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
62
+ </ImportGroup>
63
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
64
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65
+ </ImportGroup>
66
+ <PropertyGroup Label="UserMacros" />
67
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
68
+ <LinkIncremental>true</LinkIncremental>
69
+ <IncludePath>$(IncludePath);$(UniversalCRT_IncludePath);$(SolutionDir)..\..\lib;$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSDK_IncludePath);</IncludePath>
70
+ </PropertyGroup>
71
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
72
+ <LinkIncremental>true</LinkIncremental>
73
+ <IncludePath>$(IncludePath);$(UniversalCRT_IncludePath);$(SolutionDir)..\..\lib;$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSDK_IncludePath);</IncludePath>
74
+ <RunCodeAnalysis>true</RunCodeAnalysis>
75
+ </PropertyGroup>
76
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
77
+ <LinkIncremental>false</LinkIncremental>
78
+ <IncludePath>$(IncludePath);$(UniversalCRT_IncludePath);$(SolutionDir)..\..\lib;$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSDK_IncludePath);</IncludePath>
79
+ </PropertyGroup>
80
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
81
+ <LinkIncremental>false</LinkIncremental>
82
+ <IncludePath>$(IncludePath);$(UniversalCRT_IncludePath);$(SolutionDir)..\..\lib;$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSDK_IncludePath);</IncludePath>
83
+ <RunCodeAnalysis>true</RunCodeAnalysis>
84
+ </PropertyGroup>
85
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
86
+ <ClCompile>
87
+ <PrecompiledHeader>
88
+ </PrecompiledHeader>
89
+ <WarningLevel>Level4</WarningLevel>
90
+ <Optimization>Disabled</Optimization>
91
+ <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;LZ4_DLL_IMPORT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
92
+ <TreatWarningAsError>true</TreatWarningAsError>
93
+ <EnablePREfast>false</EnablePREfast>
94
+ <AdditionalIncludeDirectories>..\include</AdditionalIncludeDirectories>
95
+ </ClCompile>
96
+ <Link>
97
+ <SubSystem>Console</SubSystem>
98
+ <GenerateDebugInformation>true</GenerateDebugInformation>
99
+ <AdditionalLibraryDirectories>$(SolutionDir)..\dll;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
100
+ <AdditionalDependencies>liblz4.lib;%(AdditionalDependencies)</AdditionalDependencies>
101
+ <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
102
+ </Link>
103
+ </ItemDefinitionGroup>
104
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
105
+ <ClCompile>
106
+ <PrecompiledHeader>
107
+ </PrecompiledHeader>
108
+ <WarningLevel>Level4</WarningLevel>
109
+ <Optimization>Disabled</Optimization>
110
+ <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;LZ4_DLL_IMPORT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
111
+ <TreatWarningAsError>true</TreatWarningAsError>
112
+ <EnablePREfast>true</EnablePREfast>
113
+ <AdditionalOptions>/analyze:stacksize295252 %(AdditionalOptions)</AdditionalOptions>
114
+ <AdditionalIncludeDirectories>..\include</AdditionalIncludeDirectories>
115
+ </ClCompile>
116
+ <Link>
117
+ <SubSystem>Console</SubSystem>
118
+ <GenerateDebugInformation>true</GenerateDebugInformation>
119
+ <AdditionalLibraryDirectories>$(SolutionDir)..\dll;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
120
+ <AdditionalDependencies>liblz4.lib;%(AdditionalDependencies)</AdditionalDependencies>
121
+ </Link>
122
+ </ItemDefinitionGroup>
123
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
124
+ <ClCompile>
125
+ <WarningLevel>Level4</WarningLevel>
126
+ <PrecompiledHeader>
127
+ </PrecompiledHeader>
128
+ <Optimization>MaxSpeed</Optimization>
129
+ <FunctionLevelLinking>true</FunctionLevelLinking>
130
+ <IntrinsicFunctions>true</IntrinsicFunctions>
131
+ <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;LZ4_DLL_IMPORT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
132
+ <TreatWarningAsError>false</TreatWarningAsError>
133
+ <EnablePREfast>false</EnablePREfast>
134
+ <AdditionalIncludeDirectories>..\include</AdditionalIncludeDirectories>
135
+ </ClCompile>
136
+ <Link>
137
+ <SubSystem>Console</SubSystem>
138
+ <GenerateDebugInformation>true</GenerateDebugInformation>
139
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
140
+ <OptimizeReferences>true</OptimizeReferences>
141
+ <AdditionalLibraryDirectories>$(SolutionDir)..\dll;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
142
+ <AdditionalDependencies>liblz4.lib;%(AdditionalDependencies)</AdditionalDependencies>
143
+ <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
144
+ </Link>
145
+ </ItemDefinitionGroup>
146
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
147
+ <ClCompile>
148
+ <WarningLevel>Level4</WarningLevel>
149
+ <PrecompiledHeader>
150
+ </PrecompiledHeader>
151
+ <Optimization>MaxSpeed</Optimization>
152
+ <FunctionLevelLinking>true</FunctionLevelLinking>
153
+ <IntrinsicFunctions>true</IntrinsicFunctions>
154
+ <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;LZ4_DLL_IMPORT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
155
+ <TreatWarningAsError>false</TreatWarningAsError>
156
+ <EnablePREfast>true</EnablePREfast>
157
+ <AdditionalOptions>/analyze:stacksize295252 %(AdditionalOptions)</AdditionalOptions>
158
+ <AdditionalIncludeDirectories>..\include</AdditionalIncludeDirectories>
159
+ </ClCompile>
160
+ <Link>
161
+ <SubSystem>Console</SubSystem>
162
+ <GenerateDebugInformation>true</GenerateDebugInformation>
163
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
164
+ <OptimizeReferences>true</OptimizeReferences>
165
+ <AdditionalLibraryDirectories>$(SolutionDir)..\dll;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
166
+ <AdditionalDependencies>liblz4.lib;%(AdditionalDependencies)</AdditionalDependencies>
167
+ </Link>
168
+ </ItemDefinitionGroup>
169
+ <ItemGroup>
170
+ <ClCompile Include="xxhash.c" />
171
+ <ClCompile Include="fullbench.c" />
172
+ </ItemGroup>
173
+ <ItemGroup>
174
+ <ClInclude Include="..\include\lz4.h" />
175
+ <ClInclude Include="..\include\lz4frame.h" />
176
+ <ClInclude Include="..\include\lz4hc.h" />
177
+ <ClInclude Include="xxhash.h" />
178
+ </ItemGroup>
179
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
180
+ <ImportGroup Label="ExtensionTargets">
181
+ </ImportGroup>
182
+ </Project>
@@ -0,0 +1,62 @@
1
+ LIBRARY liblz4.dll
2
+ EXPORTS
3
+ LZ4F_compressBegin
4
+ LZ4F_compressBound
5
+ LZ4F_compressEnd
6
+ LZ4F_compressFrame
7
+ LZ4F_compressFrameBound
8
+ LZ4F_compressUpdate
9
+ LZ4F_createCompressionContext
10
+ LZ4F_createDecompressionContext
11
+ LZ4F_decompress
12
+ LZ4F_flush
13
+ LZ4F_freeCompressionContext
14
+ LZ4F_freeDecompressionContext
15
+ LZ4F_getErrorName
16
+ LZ4F_getFrameInfo
17
+ LZ4F_getVersion
18
+ LZ4F_isError
19
+ LZ4_compress
20
+ LZ4_compressBound
21
+ LZ4_compressHC
22
+ LZ4_compressHC_continue
23
+ LZ4_compressHC_limitedOutput
24
+ LZ4_compressHC_limitedOutput_continue
25
+ LZ4_compressHC_limitedOutput_withStateHC
26
+ LZ4_compressHC_withStateHC
27
+ LZ4_compress_HC
28
+ LZ4_compress_HC_continue
29
+ LZ4_compress_HC_extStateHC
30
+ LZ4_compress_continue
31
+ LZ4_compress_default
32
+ LZ4_compress_destSize
33
+ LZ4_compress_fast
34
+ LZ4_compress_fast_continue
35
+ LZ4_compress_fast_extState
36
+ LZ4_compress_limitedOutput
37
+ LZ4_compress_limitedOutput_continue
38
+ LZ4_compress_limitedOutput_withState
39
+ LZ4_compress_withState
40
+ LZ4_createStream
41
+ LZ4_createStreamDecode
42
+ LZ4_createStreamHC
43
+ LZ4_decompress_fast
44
+ LZ4_decompress_fast_continue
45
+ LZ4_decompress_fast_usingDict
46
+ LZ4_decompress_safe
47
+ LZ4_decompress_safe_continue
48
+ LZ4_decompress_safe_partial
49
+ LZ4_decompress_safe_usingDict
50
+ LZ4_freeStream
51
+ LZ4_freeStreamDecode
52
+ LZ4_freeStreamHC
53
+ LZ4_loadDict
54
+ LZ4_loadDictHC
55
+ LZ4_resetStream
56
+ LZ4_resetStreamHC
57
+ LZ4_saveDict
58
+ LZ4_saveDictHC
59
+ LZ4_setStreamDecode
60
+ LZ4_sizeofState
61
+ LZ4_sizeofStateHC
62
+ LZ4_versionNumber
@@ -0,0 +1,35 @@
1
+ #include <windows.h>
2
+
3
+ // DLL version information.
4
+ 1 VERSIONINFO
5
+ FILEVERSION @LIBVER_MAJOR@,@LIBVER_MINOR@,@LIBVER_PATCH@,0
6
+ PRODUCTVERSION @LIBVER_MAJOR@,@LIBVER_MINOR@,@LIBVER_PATCH@,0
7
+ FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8
+ #ifdef _DEBUG
9
+ FILEFLAGS VS_FF_DEBUG | VS_FF_PRERELEASE
10
+ #else
11
+ FILEFLAGS 0
12
+ #endif
13
+ FILEOS VOS_NT_WINDOWS32
14
+ FILETYPE VFT_DLL
15
+ FILESUBTYPE VFT2_UNKNOWN
16
+ BEGIN
17
+ BLOCK "StringFileInfo"
18
+ BEGIN
19
+ BLOCK "040904B0"
20
+ BEGIN
21
+ VALUE "CompanyName", "Yann Collet"
22
+ VALUE "FileDescription", "Extremely fast compression"
23
+ VALUE "FileVersion", "@LIBVER_MAJOR@.@LIBVER_MINOR@.@LIBVER_PATCH@.0"
24
+ VALUE "InternalName", "@LIBLZ4@"
25
+ VALUE "LegalCopyright", "Copyright (C) 2013-2016, Yann Collet"
26
+ VALUE "OriginalFilename", "@LIBLZ4@.dll"
27
+ VALUE "ProductName", "LZ4"
28
+ VALUE "ProductVersion", "@LIBVER_MAJOR@.@LIBVER_MINOR@.@LIBVER_PATCH@.0"
29
+ END
30
+ END
31
+ BLOCK "VarFileInfo"
32
+ BEGIN
33
+ VALUE "Translation", 0x0409, 1200
34
+ END
35
+ END
@@ -0,0 +1,14 @@
1
+ # LZ4 - Fast LZ compression algorithm
2
+ # Copyright (C) 2011-2014, Yann Collet.
3
+ # BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
4
+
5
+ prefix=@PREFIX@
6
+ libdir=@LIBDIR@
7
+ includedir=@INCLUDEDIR@
8
+
9
+ Name: lz4
10
+ Description: extremely fast lossless compression algorithm library
11
+ URL: http://www.lz4.org/
12
+ Version: @VERSION@
13
+ Libs: -L@LIBDIR@ -llz4
14
+ Cflags: -I@INCLUDEDIR@