1
1
// !!! DO NOT EDIT - THIS IS AN AUTO-GENERATED FILE !!!
2
- // Created by amalgamation.sh on 2024-09-20T14:21:41Z
2
+ // Created by amalgamation.sh on 2024-09-19T00:48:39Z
3
3
4
4
/*
5
5
* The CRoaring project is under a dual license (Apache/MIT).
59
59
// /include/roaring/roaring_version.h automatically generated by release.py, do not change by hand
60
60
#ifndef ROARING_INCLUDE_ROARING_VERSION
61
61
#define ROARING_INCLUDE_ROARING_VERSION
62
- #define ROARING_VERSION " 4.1.6 "
62
+ #define ROARING_VERSION " 4.1.3 "
63
63
enum {
64
64
ROARING_VERSION_MAJOR = 4 ,
65
65
ROARING_VERSION_MINOR = 1 ,
66
- ROARING_VERSION_REVISION = 6
66
+ ROARING_VERSION_REVISION = 3
67
67
};
68
68
#endif // ROARING_INCLUDE_ROARING_VERSION
69
69
// clang-format on/* end file include/roaring/roaring_version.h */
@@ -1679,10 +1679,6 @@ size_t roaring_bitmap_shrink_to_fit(roaring_bitmap_t *r);
1679
1679
* This function is endian-sensitive. If you have a big-endian system (e.g., a
1680
1680
* mainframe IBM s390x), the data format is going to be big-endian and not
1681
1681
* compatible with little-endian systems.
1682
- *
1683
- * When serializing data to a file, we recommend that you also use
1684
- * checksums so that, at deserialization, you can be confident
1685
- * that you are recovering the correct data.
1686
1682
*/
1687
1683
size_t roaring_bitmap_serialize (const roaring_bitmap_t *r, char *buf);
1688
1684
@@ -1746,10 +1742,7 @@ roaring_bitmap_t *roaring_bitmap_portable_deserialize(const char *buf);
1746
1742
* https://github.com/RoaringBitmap/RoaringFormatSpec
1747
1743
*
1748
1744
* The function itself is safe in the sense that it will not cause buffer
1749
- * overflows: it will not read beyond the scope of the provided buffer
1750
- * (buf,maxbytes).
1751
- *
1752
- * However, for correct operations, it is assumed that the bitmap
1745
+ * overflows. However, for correct operations, it is assumed that the bitmap
1753
1746
* read was once serialized from a valid bitmap (i.e., it follows the format
1754
1747
* specification). If you provided an incorrect input (garbage), then the bitmap
1755
1748
* read may not be in a valid state and following operations may not lead to
@@ -1759,10 +1752,8 @@ roaring_bitmap_t *roaring_bitmap_portable_deserialize(const char *buf);
1759
1752
* but not for random inputs.
1760
1753
*
1761
1754
* You may use roaring_bitmap_internal_validate to check the validity of the
1762
- * bitmap prior to using it.
1763
- *
1764
- * We recommend that you use checksums to check that serialized data corresponds
1765
- * to a serialized bitmap.
1755
+ * bitmap prior to using it. You may also use other strategies to check for
1756
+ * corrupted inputs (e.g., checksums).
1766
1757
*
1767
1758
* This function is endian-sensitive. If you have a big-endian system (e.g., a
1768
1759
* mainframe IBM s390x), the data format is going to be big-endian and not
@@ -1824,10 +1815,6 @@ size_t roaring_bitmap_portable_size_in_bytes(const roaring_bitmap_t *r);
1824
1815
* This function is endian-sensitive. If you have a big-endian system (e.g., a
1825
1816
* mainframe IBM s390x), the data format is going to be big-endian and not
1826
1817
* compatible with little-endian systems.
1827
- *
1828
- * When serializing data to a file, we recommend that you also use
1829
- * checksums so that, at deserialization, you can be confident
1830
- * that you are recovering the correct data.
1831
1818
*/
1832
1819
size_t roaring_bitmap_portable_serialize (const roaring_bitmap_t *r, char *buf);
1833
1820
@@ -1862,10 +1849,6 @@ size_t roaring_bitmap_frozen_size_in_bytes(const roaring_bitmap_t *r);
1862
1849
* This function is endian-sensitive. If you have a big-endian system (e.g., a
1863
1850
* mainframe IBM s390x), the data format is going to be big-endian and not
1864
1851
* compatible with little-endian systems.
1865
- *
1866
- * When serializing data to a file, we recommend that you also use
1867
- * checksums so that, at deserialization, you can be confident
1868
- * that you are recovering the correct data.
1869
1852
*/
1870
1853
void roaring_bitmap_frozen_serialize (const roaring_bitmap_t *r, char *buf);
1871
1854
@@ -2826,10 +2809,6 @@ size_t roaring64_bitmap_portable_size_in_bytes(const roaring64_bitmap_t *r);
2826
2809
* This function is endian-sensitive. If you have a big-endian system (e.g., a
2827
2810
* mainframe IBM s390x), the data format is going to be big-endian and not
2828
2811
* compatible with little-endian systems.
2829
- *
2830
- * When serializing data to a file, we recommend that you also use
2831
- * checksums so that, at deserialization, you can be confident
2832
- * that you are recovering the correct data.
2833
2812
*/
2834
2813
size_t roaring64_bitmap_portable_serialize (const roaring64_bitmap_t *r,
2835
2814
char *buf);
@@ -2844,17 +2823,14 @@ size_t roaring64_bitmap_portable_deserialize_size(const char *buf,
2844
2823
size_t maxbytes);
2845
2824
2846
2825
/* *
2847
- * Read a bitmap from a serialized buffer (reading up to maxbytes).
2826
+ * Read a bitmap from a serialized buffer safely (reading up to maxbytes).
2848
2827
* In case of failure, NULL is returned.
2849
2828
*
2850
2829
* This is meant to be compatible with other languages
2851
2830
* https://github.com/RoaringBitmap/RoaringFormatSpec#extension-for-64-bit-implementations
2852
2831
*
2853
2832
* The function itself is safe in the sense that it will not cause buffer
2854
- * overflows: it will not read beyond the scope of the provided buffer
2855
- * (buf,maxbytes).
2856
- *
2857
- * However, for correct operations, it is assumed that the bitmap
2833
+ * overflows. However, for correct operations, it is assumed that the bitmap
2858
2834
* read was once serialized from a valid bitmap (i.e., it follows the format
2859
2835
* specification). If you provided an incorrect input (garbage), then the bitmap
2860
2836
* read may not be in a valid state and following operations may not lead to
@@ -2863,12 +2839,6 @@ size_t roaring64_bitmap_portable_deserialize_size(const char *buf,
2863
2839
* order. This is is guaranteed to happen when serializing an existing bitmap,
2864
2840
* but not for random inputs.
2865
2841
*
2866
- * You may use roaring64_bitmap_internal_validate to check the validity of the
2867
- * bitmap prior to using it.
2868
- *
2869
- * We recommend that you use checksums to check that serialized data corresponds
2870
- * to a serialized bitmap.
2871
- *
2872
2842
* This function is endian-sensitive. If you have a big-endian system (e.g., a
2873
2843
* mainframe IBM s390x), the data format is going to be big-endian and not
2874
2844
* compatible with little-endian systems.
0 commit comments