Sha256: 043bdc885116dba78a22b6d88435da2e7b8459746dbd784cd36787d3fc20964c
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2020-Present Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <cinttypes> #include <vector> namespace couchbase::codec { using binary = std::vector<std::byte>; struct encoded_value { binary data; std::uint32_t flags; }; static inline bool operator==(const encoded_value& lhs, const encoded_value& rhs) noexcept { return lhs.data == rhs.data && lhs.flags == rhs.flags; } static inline bool operator!=(const encoded_value& lhs, const encoded_value& rhs) noexcept { return !(lhs == rhs); } } // namespace couchbase::codec
Version data entries
3 entries across 3 versions & 1 rubygems