Loading...
Searching...
No Matches
formats.hpp
Go to the documentation of this file.
// Copyright 2009-present MongoDB, 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 <bsoncxx/vector/formats-fwd.hpp> // IWYU pragma: export
//
#include <array> // IWYU pragma: keep: backward compatibility, to be removed.
#include <cstddef>
#include <cstdint>
#include <bsoncxx/types-fwd.hpp>
#include <bsoncxx/vector/accessor-fwd.hpp> // IWYU pragma: keep: backward compatibility, to be removed.
#include <bsoncxx/config/prelude.hpp>
namespace bsoncxx {
namespace v_noabi {
namespace vector {
namespace formats {
struct f_float32 {
static BSONCXX_ABI_EXPORT_CDECL_UNSTABLE(std::uint32_t) length_for_append(std::size_t element_count);
static BSONCXX_ABI_EXPORT_CDECL_UNSTABLE(void)
write_frame(std::uint8_t* binary_data, std::uint32_t binary_data_length, std::size_t element_count);
static BSONCXX_ABI_EXPORT_CDECL_UNSTABLE(void) validate(types::b_binary const& binary);
};
struct f_int8 {
static BSONCXX_ABI_EXPORT_CDECL_UNSTABLE(std::uint32_t) length_for_append(std::size_t element_count);
static BSONCXX_ABI_EXPORT_CDECL_UNSTABLE(void)
write_frame(std::uint8_t* binary_data, std::uint32_t binary_data_length, std::size_t element_count);
static BSONCXX_ABI_EXPORT_CDECL_UNSTABLE(void) validate(types::b_binary const& binary);
};
struct f_packed_bit {
static BSONCXX_ABI_EXPORT_CDECL_UNSTABLE(std::uint32_t) length_for_append(std::size_t element_count);
static BSONCXX_ABI_EXPORT_CDECL_UNSTABLE(void)
write_frame(std::uint8_t* binary_data, std::uint32_t binary_data_length, std::size_t element_count);
static BSONCXX_ABI_EXPORT_CDECL_UNSTABLE(void) validate(types::b_binary const& binary);
};
} // namespace formats
} // namespace vector
} // namespace v_noabi
} // namespace bsoncxx
#include <bsoncxx/config/postlude.hpp>
accessor-fwd.hpp
Declares bsoncxx::v_noabi::vector::accessor.
BSONCXX_ABI_EXPORT_CDECL_UNSTABLE
#define BSONCXX_ABI_EXPORT_CDECL_UNSTABLE(...)
Equivalent to BSONCXX_ABI_EXPORT_UNSTABLE with BSONCXX_ABI_CDECL.
Definition config.hpp:28
postlude.hpp
The bsoncxx v_noabi macro guard postlude header.
prelude.hpp
The bsoncxx v_noabi macro guard prelude header.
formats-fwd.hpp
Declares entities in bsoncxx::v_noabi::vector::formats.
bsoncxx::v_noabi::vector::formats
Declares supported BSON Binary Vector formats.
bsoncxx::v_noabi::vector
Declarations related to the BSON Binary Vector subtype.
bsoncxx::v_noabi
Declares entities whose ABI stability is NOT guaranteed.
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
bsoncxx::v_noabi::types::b_binary
A BSON binary data value.
Definition types.hpp:268
bsoncxx::v_noabi::vector::formats::f_float32
Vector format for 32-bit floating point elements, packed least significant byte first.
Definition formats.hpp:36
bsoncxx::v_noabi::vector::formats::f_int8
Vector format for signed 8-bit integer elements.
Definition formats.hpp:44
bsoncxx::v_noabi::vector::formats::f_packed_bit
Vector format for single bit elements, packed most significant bit first.
Definition formats.hpp:52
types-fwd.hpp
Declares entities used to represent BSON types.