diff options
Diffstat (limited to 'storage/innobase/include/mach0data.ic')
-rw-r--r-- | storage/innobase/include/mach0data.ic | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/storage/innobase/include/mach0data.ic b/storage/innobase/include/mach0data.ic index 80bd925d70b..bfccf611991 100644 --- a/storage/innobase/include/mach0data.ic +++ b/storage/innobase/include/mach0data.ic @@ -1,7 +1,7 @@ /***************************************************************************** Copyright (c) 1995, 2015, Oracle and/or its affiliates. All Rights Reserved. -Copyright (c) 2017, 2019, MariaDB Corporation. +Copyright (c) 2017, 2020, MariaDB Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -546,38 +546,6 @@ mach_read_next_much_compressed( return(val); } -/** Read a 64-bit integer in a compressed form. -@param[in,out] ptr pointer to memory where to read; -advanced by the number of bytes consumed, or set NULL if out of space -@param[in] end_ptr end of the buffer -@return unsigned value */ -UNIV_INLINE -ib_uint64_t -mach_u64_parse_compressed( - const byte** ptr, - const byte* end_ptr) -{ - ib_uint64_t val = 0; - - if (end_ptr < *ptr + 5) { - *ptr = NULL; - return(val); - } - - val = mach_read_next_compressed(ptr); - - if (end_ptr < *ptr + 4) { - *ptr = NULL; - return(val); - } - - val <<= 32; - val |= mach_read_from_4(*ptr); - *ptr += 4; - - return(val); -} - /*********************************************************//** Reads a double. It is stored in a little-endian format. @return double read */ |