text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: include/fast_io_core_impl/transmit/scanner.h #pragma once namespace fast_io { namespace details { template<::fast_io::input_stream input,typename context_type,typename sccontext> inline constexpr void basic_scanner_context_next_common(input handle,context_type& context,sccontext& scnctx) { using input_ha...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/transmit/scanner.h", "license": "mit", "size": 6901}
### File: include/fast_io_core_impl/transmit/transmit.h #pragma once namespace fast_io { template<typename T,typename P> concept status_transmitable = requires(T&& t,P&& p) { status_transmit_define(io_alias,::std::forward<T>(t),::std::forward<P>(p)); }; template<typename T,typename P> concept zero_copy_transmitab...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/transmit/transmit.h", "license": "mit", "size": 8893}
### File: include/fast_io_core_impl/unit_character_input_buffer.h #pragma once namespace fast_io { template<input_stream input> requires (!buffer_input_stream<input>) struct single_character_input_buffer { public: using char_type = typename input::char_type; input& reference{}; char_type single_character{}; bool...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/unit_character_input_buffer.h", "license": "mit", "size": 2151}
### File: include/fast_io_core_impl/utils.h #pragma once #if defined(__GNUC__) && !defined(__clang__) #pragma GCC system_header #endif namespace fast_io { //All compilers have supported bit_cast but most people are stick with GCC 10. We provide emulation currently. template<typename To,typename From> requires (size...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/utils.h", "license": "mit", "size": 22610}
### File: include/fast_io_crypto.h #pragma once //fast_io_crypto.h defines what you could use for cryptography //It is likely usable in a freestanding environment #if !defined(__cplusplus) #error "You are not using a C++ compiler" #endif #if !defined(__cpp_concepts) #error "fast_io requires at least C++20 standard c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto.h", "license": "mit", "size": 756}
### File: include/fast_io_crypto/cipher/aes.h #pragma once #if defined(__AES__) #include <wmmintrin.h> #endif namespace fast_io { namespace details::aes { inline __m128i aes_128_key_exp_common(__m128i key) noexcept { key = _mm_xor_si128(key, _mm_slli_si128(key, 4)); key = _mm_xor_si128(key, _mm_slli_si128(key, 4)...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/cipher/aes.h", "license": "mit", "size": 6464}
### File: include/fast_io_crypto/hash/crc32.h #pragma once namespace fast_io { namespace details { enum class crc32_option { crc32, crc32c }; inline constexpr void crc32_to_byte_ptr_commom_impl(std::uint_least32_t crc,std::byte* ptr) noexcept { crc=~crc; if constexpr(std::endian::big!=std::endian::native) { c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/crc32.h", "license": "mit", "size": 8123}
### File: include/fast_io_crypto/hash/impl.h #pragma once #include"md5_sha_hash_context.h" #include"md5.h" #include"sha1.h" #include"sha256.h" #include"sha512.h" #include"crc32.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/impl.h", "license": "mit", "size": 137}
### File: include/fast_io_crypto/hash/md5.h #pragma once namespace fast_io::details::md5 { enum class operation { F,G,H,I }; template<operation op> inline constexpr auto unit(auto const x,auto const y,auto const z) noexcept { if constexpr(op==operation::F) { if constexpr(true) { return (x&(y^z))^z; } e...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/md5.h", "license": "mit", "size": 15356}
### File: include/fast_io_crypto/hash/md5_sha_hash_context.h #pragma once namespace fast_io::details { struct pesudo_uint_least128_little_endian_t { std::uint_least64_t low{},high{}; }; struct pesudo_uint_least128_big_endian_t { std::uint_least64_t high{},low{}; }; using pesudo_uint_least128_t=std::conditional_t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/md5_sha_hash_context.h", "license": "mit", "size": 9494}
### File: include/fast_io_crypto/hash/sha1.h #pragma once namespace fast_io::details::sha1 { //from https://github.com/vog/sha1/blob/master/sha1.cpp inline constexpr std::uint_least32_t blk(std::uint_least32_t* __restrict block,std::size_t const i) noexcept { return std::rotl(block[(i+13)&15] ^ block[(i+8)&15] ^ blo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/sha1.h", "license": "mit", "size": 24470}
### File: include/fast_io_crypto/hash/sha256.h #pragma once /* https://github.com/noloader/SHA-Intrinsics/blob/master/sha256-x86.c */ namespace fast_io::details::sha256 { inline constexpr std::uint_least32_t K256[] { 0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5, 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5, 0xD8...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/sha256.h", "license": "mit", "size": 7136}
### File: include/fast_io_crypto/hash/sha256_scalar.h #pragma once inline constexpr auto create_k256scalar() noexcept { constexpr std::size_t n{sizeof(K256)/sizeof(std::uint_least32_t)}; constexpr std::size_t nsub16{n-16u}; ::fast_io::freestanding::array<std::uint_least32_t,nsub16> a; for(std::size_t i{};i!=nsub16...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/sha256_scalar.h", "license": "mit", "size": 4528}
### File: include/fast_io_crypto/hash/sha256_simd16.h #pragma once #if __has_cpp_attribute(__gnu__::__always_inline__) [[__gnu__::__always_inline__]] #endif inline void sha256_simd16_byte_swap_message_4rounds(::fast_io::intrinsics::simd_vector<std::uint_least32_t,4>& __restrict s1, std::byte const* __restrict blocks...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/sha256_simd16.h", "license": "mit", "size": 5643}
### File: include/fast_io_crypto/hash/sha256_x86_sha_extensions.h #pragma once #if defined(__SSE2__) && (!defined(__SHA__) || !defined(__SSSE3__)) && __has_cpp_attribute(__gnu__::__target__) && !defined(__clang__) && defined(__ELF__) && defined(FAST_IO_RUNTIME_DISPATCH) [[__gnu__::__target__("ssse3,sha")]] #elif __ha...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/sha256_x86_sha_extensions.h", "license": "mit", "size": 10003}
### File: include/fast_io_crypto/hash/sha256_x86_sha_extensions_msvc.h #pragma once #if __has_cpp_attribute(__gnu__::__flatten__) [[__gnu__::__flatten__]] #endif inline void sha256_runtime_routine(std::uint_least32_t* __restrict state,std::byte const* __restrict block,std::byte const* __restrict blocks_last) noexcept ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/sha256_x86_sha_extensions_msvc.h", "license": "mit", "size": 7895}
### File: include/fast_io_crypto/hash/sha512.h #pragma once /* https://github.com/noloader/SHA-Intrinsics/blob/master/sha256-x86.c */ namespace fast_io::details::sha512 { inline constexpr std::uint_least64_t K512[] { 0x428a2f98d728ae22, 0x7137449123ef65cd, 0xb5c0fbcfec4d3b2f, 0xe9b5dba58189dbbc, 0x3956c25bf348b538, ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/sha512.h", "license": "mit", "size": 9196}
### File: include/fast_io_crypto/hash/sha512_scalar.h #pragma once inline constexpr auto create_k512scalar() noexcept { constexpr std::size_t n{sizeof(K512)/sizeof(std::uint_least64_t)}; constexpr std::size_t nsub16{n-16u}; ::fast_io::freestanding::array<std::uint_least64_t,nsub16> a; for(std::size_t i{};i!=nsub1...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/sha512_scalar.h", "license": "mit", "size": 4660}
### File: include/fast_io_crypto/hash/sha512_simd16.h #pragma once #if __has_cpp_attribute(__gnu__::__always_inline__) [[__gnu__::__always_inline__]] #elif __has_cpp_attribute(msvc::forceinline) [[msvc::forceinline]] #endif inline void sha512_simd16_byte_swap_message_2rounds(::fast_io::intrinsics::simd_vector<std::ui...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/sha512_simd16.h", "license": "mit", "size": 5751}
### File: include/fast_io_crypto/hash/sha512_simd32.h #pragma once #if __has_cpp_attribute(__gnu__::__always_inline__) [[__gnu__::__always_inline__]] #endif inline void sha512_simd32_byte_swap_message_4rounds(::fast_io::intrinsics::simd_vector<std::uint_least64_t,4>& __restrict s1, std::byte const* __restrict blocks...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/sha512_simd32.h", "license": "mit", "size": 5742}
### File: include/fast_io_crypto/hash/sha512_simd32_shuffle.h #pragma once #if __has_cpp_attribute(__gnu__::__always_inline__) [[__gnu__::__always_inline__]] #endif inline void sha512_simd32_byte_swap_message_4rounds(::fast_io::intrinsics::simd_vector<std::uint_least64_t,4>& __restrict s1, std::byte const* __restric...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/hash/sha512_simd32_shuffle.h", "license": "mit", "size": 9529}
### File: include/fast_io_crypto/padding/padding.h #pragma once #include "zero_padding.h" #include "pkcs7_padding.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/padding/padding.h", "license": "mit", "size": 70}
### File: include/fast_io_crypto/padding/pkcs7_padding.h  #pragma once namespace fast_io::crypto { template<std::size_t block_size> struct pkcs7_padding { auto operator()(std::span<std::byte const> inp, std::size_t remaining_length) { std::byte pad(static_cast<std::byte>(static_cast<std::uint_least8_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/padding/pkcs7_padding.h", "license": "mit", "size": 568}
### File: include/fast_io_crypto/padding/zero_padding.h  #pragma once namespace fast_io::crypto { template<std::size_t block_size> struct zero_padding { auto operator()(std::span<std::byte const> inp, std::size_t remaining_length) { ::fast_io::freestanding::array<std::byte, block_size> text{}; deta...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/padding/zero_padding.h", "license": "mit", "size": 350}
### File: include/fast_io_crypto/platforms/impl.h #pragma once #if (defined(_WIN32) && !defined(__WINE__)) || defined(__CYGWIN__) #include"win32/impl.h" #include"nt_bcrypt.h" #endif #if __has_include(<openssl/evp.h>) #include<openssl/evp.h> #include"ossl_evp.h" #endif namespace fast_io { #if (defined(_WIN32) && !d...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/platforms/impl.h", "license": "mit", "size": 451}
### File: include/fast_io_crypto/platforms/nt_bcrypt.h #pragma once namespace fast_io { class nt_bcrypt_hash_file; namespace details { inline void create_bcrypt_common_hash_impl(nt_bcrypt_hash_file& g,char16_t const* name); template<constructible_to_os_c_str T> inline void create_nt_bcrypt_impl(nt_bcrypt_hash_file...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/platforms/nt_bcrypt.h", "license": "mit", "size": 5060}
### File: include/fast_io_crypto/platforms/ossl_evp.h #pragma once namespace fast_io { namespace details { class ossl_evp_guard { public: EVP_MD_CTX* pmdctx{}; ossl_evp_guard():pmdctx{noexcept_call(EVP_MD_CTX_new)} { if(this->pmdctx==nullptr) { throw_posix_error(EINVAL); } } ossl_evp_guard(ossl_evp_gu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/platforms/ossl_evp.h", "license": "mit", "size": 2602}
### File: include/fast_io_crypto/platforms/win32/apis.h #pragma once namespace fast_io::win32 { #if defined(_MSC_VER) && !defined(__clang__) __declspec(dllimport) #elif (__has_cpp_attribute(__gnu__::__dllimport__)&&!defined(__WINE__)) [[__gnu__::__dllimport__]] #endif #if (__has_cpp_attribute(__gnu__::__stdcall__)&&...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/platforms/win32/apis.h", "license": "mit", "size": 5603}
### File: include/fast_io_crypto/platforms/win32/impl.h #pragma once #include"apis.h" #if defined(_MSC_VER) && !defined(__clang__) #include"msvc_linker.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/platforms/win32/impl.h", "license": "mit", "size": 110}
### File: include/fast_io_crypto/platforms/win32/msvc_linker.h #pragma once #if SIZE_MAX > UINT_LEAST32_MAX #include"msvc_linker_64.h" #elif defined(__x86__) || defined(_M_IX86) || defined(__i386__) #include"msvc_linker_32_i686.h" #else #include"msvc_linker_32.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/platforms/win32/msvc_linker.h", "license": "mit", "size": 212}
### File: include/fast_io_crypto/platforms/win32/msvc_linker_32.h #pragma once #pragma comment(linker,"/alternatename:__imp_?BCryptOpenAlgorithmProvider@win32@fast_io@@YAIPAPAXPB_S1I@Z=__imp_BCryptOpenAlgorithmProvider") #pragma comment(linker,"/alternatename:__imp_?BCryptCloseAlgorithmProvider@win32@fast_io@@YAIPAXI...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/platforms/win32/msvc_linker_32.h", "license": "mit", "size": 884}
### File: include/fast_io_crypto/platforms/win32/msvc_linker_32_i686.h #pragma once #pragma comment(linker,"/alternatename:__imp_?BCryptOpenAlgorithmProvider@win32@fast_io@@YGIPAPAXPB_S1I@Z=__imp__BCryptOpenAlgorithmProvider@16") #pragma comment(linker,"/alternatename:__imp_?BCryptCloseAlgorithmProvider@win32@fast_io...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/platforms/win32/msvc_linker_32_i686.h", "license": "mit", "size": 910}
### File: include/fast_io_crypto/platforms/win32/msvc_linker_64.h #pragma once #pragma comment(linker,"/alternatename:__imp_?BCryptOpenAlgorithmProvider@win32@fast_io@@YAIPEAPEAXPEB_S1I@Z=__imp_BCryptOpenAlgorithmProvider") #pragma comment(linker,"/alternatename:__imp_?BCryptCloseAlgorithmProvider@win32@fast_io@@YAIP...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/platforms/win32/msvc_linker_64.h", "license": "mit", "size": 898}
### File: include/fast_io_crypto/streamcipher/chacha/impl.h #pragma once #include"scalar.h" #if (defined(__GNUC__) || defined(__clang__)) && (defined(__SSE__)||defined(__wasm_simd128__)) #if __has_builtin(__builtin_shufflevector) #include"simd16.h" #else #include"runtime.h" #endif #else #include"runtime.h" #endif n...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/streamcipher/chacha/impl.h", "license": "mit", "size": 759}
### File: include/fast_io_crypto/streamcipher/chacha/runtime.h #pragma once namespace fast_io::details::chacha { #if __has_cpp_attribute(__gnu__::__flatten__) [[__gnu__::__flatten__]] #endif inline constexpr void chacha_runtime_routine(::std::byte* __restrict outdata, ::std::uint_least32_t const* __restrict indata) n...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/streamcipher/chacha/runtime.h", "license": "mit", "size": 308}
### File: include/fast_io_crypto/streamcipher/chacha/scalar.h #pragma once /* https://en.wikipedia.org/wiki/Salsa20#ChaCha_variant */ namespace fast_io { namespace details::chacha { inline constexpr void chachaqr(::std::uint_least32_t& __restrict a, ::std::uint_least32_t& __restrict b, ::std::uint_least32_t& __...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/streamcipher/chacha/scalar.h", "license": "mit", "size": 2549}
### File: include/fast_io_crypto/streamcipher/chacha/simd16.h #pragma once namespace fast_io::details::chacha { template<bool evenround> #if __has_cpp_attribute(__gnu__::__always_inline__) [[__gnu__::__always_inline__]] #elif __has_cpp_attribute(msvc::forceinline) [[msvc::forceinline]] #endif #if __has_cpp_attribute(...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/streamcipher/chacha/simd16.h", "license": "mit", "size": 2459}
### File: include/fast_io_crypto/tls/cipher_suite.h #pragma once namespace fast_io::tls::cipher_suite { struct cipher_suite_type { ::fast_io::freestanding::array<std::byte,2> array{}; }; inline constexpr bool operator==(cipher_suite_type const& a,cipher_suite_type const& b) { return a.array==b.array; } inline co...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/tls/cipher_suite.h", "license": "mit", "size": 9763}
### File: include/fast_io_crypto/tls/client_hello.h #pragma once namespace fast_io::tls { struct client_hello { std::uint_least8_t handshake_type=0x01; ::fast_io::freestanding::array<std::uint_least8_t,3> size={0x00,0x01,0xFC}; std::uint_least16_t protocal_version=0x0303; //TLS v1.2. IT MUST BE 0x0303 even for TLS ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/tls/client_hello.h", "license": "mit", "size": 751}
### File: include/fast_io_crypto/tls/tls.h #pragma once #include"version.h" #if 0 #include"cipher_suite.h" #include"client_hello.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/tls/tls.h", "license": "mit", "size": 99}
### File: include/fast_io_crypto/tls/version.h #pragma once namespace fast_io::tls { /* template<output_stream output> inline constexpr void print_define(output& outp,version tls) { switch(tls) { case version::tls1_2: print_freestanding(outp,u8"TLS 1.2"); break; case version::tls1_3: print_freestanding(outp,...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_crypto/tls/version.h", "license": "mit", "size": 368}
### File: include/fast_io_device.h #pragma once #if !defined(__cplusplus) #error "You are not using a C++ compiler" #endif #if !defined(__cpp_concepts) #error "fast_io requires at least C++20 standard compiler." #else //fast_io_devices.h defines commonly used io devices and their correlated mutex verisons. #include"f...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_device.h", "license": "mit", "size": 11899}
### File: include/fast_io_driver/asio_driver.h #pragma once #include<asio.hpp> #include"asio_driver/socket_io_observer.h" namespace fast_io::asio_driver { template<std::integral char_type> using basic_ip_tcp_socket_io_observer = basic_socket_io_observer<asio::ip::tcp::socket,char_type>; using ip_tcp_socket_io_obser...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/asio_driver.h", "license": "mit", "size": 773}
### File: include/fast_io_driver/asio_driver/socket_io_observer.h #pragma once namespace fast_io::asio_driver { template<typename T,std::integral ch_type> class basic_socket_io_observer { public: using char_type = ch_type; using native_handle_type = T*; native_handle_type handle{}; constexpr operator bool() con...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/asio_driver/socket_io_observer.h", "license": "mit", "size": 1487}
### File: include/fast_io_driver/avformat/avio.h #pragma once extern "C" { #include <libavformat/avio.h> #include <libavformat/avformat.h> } namespace fast_io { template<std::integral ch_type> requires (sizeof(ch_type) == 1) class basic_avio_context_io_observer { public: using char_type = ch_type; using native_ha...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/avformat/avio.h", "license": "mit", "size": 9922}
### File: include/fast_io_driver/avr/console.h #pragma once #include<avr/sfr_defs.h> #include<avr/io.h> namespace fast_io { inline constexpr std::uint_least32_t avr_band_rate{9600}; inline constexpr std::uint_least32_t avr_f_cpu{ #if defined(F_CPU) F_CPU #else 16000000 #endif }; inline constexpr std::uint_least32_t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/avr/console.h", "license": "mit", "size": 2110}
### File: include/fast_io_driver/boost/graph.h #pragma once namespace fast_io { #ifdef BOOST_GRAPH_DETAIL_EDGE_HPP template<std::integral char_type,::fast_io::buffer_output_stream bos,typename directed,typename vertex> inline constexpr void print_define(io_reserve_type_t<char_type,::boost::detail::edge_desc_impl<di...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/boost/graph.h", "license": "mit", "size": 582}
### File: include/fast_io_driver/boost/uuid.h #pragma once #ifndef BOOST_UUID_HPP #include<boost/uuid/uuid.hpp> #endif namespace fast_io { template<std::integral char_type> inline constexpr std::size_t print_reserve_size(io_reserve_type_t<char_type,boost::uuids::uuid>) noexcept { constexpr std::size_t sz{36}; stat...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/boost/uuid.h", "license": "mit", "size": 1246}
### File: include/fast_io_driver/boost_iostreams.h #pragma once #include<ios> #include"../fast_io_core_impl/seek.h" namespace fast_io { template<typename src_type> concept boost_iostreams_input_device=requires(src_type& src,char* s,std::streamsize n) { {src.read(s,n)}->std::same_as<std::streamsize>; }; template<ty...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/boost_iostreams.h", "license": "mit", "size": 3164}
### File: include/fast_io_driver/bootloader/stvl2.h #pragma once #include<cstdint> #include<cstddef> #include<type_traits> #include<bit> /* https://github.com/stivale/stivale we just call it stvl2 to avoid naming collision with stivale2 */ namespace stvl2 { static_assert(sizeof(void*)==4||sizeof(void*)==8); static...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/bootloader/stvl2.h", "license": "mit", "size": 10343}
### File: include/fast_io_driver/bootloader/stvl2_struct_iterator.h #pragma once namespace stvl2 { struct stvl2_struct_iterator { using value_type = stvl2_tag; using difference_type = std::ptrdiff_t; stvl2_tag* ptr{}; inline constexpr stvl2_tag* operator->() const noexcept { return ptr; } inline constexpr s...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/bootloader/stvl2_struct_iterator.h", "license": "mit", "size": 1062}
### File: include/fast_io_driver/capstone.h #pragma once #include<capstone/capstone.h> namespace fast_io::capstone { struct cs_error { cs_err e{}; }; inline void throw_cs_error(cs_err e[[maybe_unused]]) { #ifdef __cpp_exceptions #if defined(_MSC_VER) && (!defined(_HAS_EXCEPTIONS) || _HAS_EXCEPTIONS == 0) fast_te...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/capstone.h", "license": "mit", "size": 4951}
### File: include/fast_io_driver/cppwinrt.h #pragma once #include"../fast_io_concept.h" #include"cppwinrt_impl/impl.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/cppwinrt.h", "license": "mit", "size": 79}
### File: include/fast_io_driver/cppwinrt_impl/hstring.h #pragma once namespace fast_io { inline cross_code_cvt_t<::winrt::hstring::value_type> print_alias_define(io_alias_t,::winrt::hstring const& hstr) noexcept { return {{hstr.c_str(),hstr.size()}}; } inline ::winrt::hstring strlike_construct_define(io_strlike_t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/cppwinrt_impl/hstring.h", "license": "mit", "size": 1270}
### File: include/fast_io_driver/cppwinrt_impl/impl.h #pragma once #if defined(WINRT_BASE_H) #include"hstring.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/cppwinrt_impl/impl.h", "license": "mit", "size": 69}
### File: include/fast_io_driver/cryptopp_driver.h #pragma once namespace fast_io::cryptopp { template<typename T> requires requires(T handle, char unsigned const* constptr, char unsigned* ptr,std::size_t n) { T::DIGESTSIZE; handle.Update(constptr,n); handle.Restart(); handle.Final(ptr); } class iterated_hash_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/cryptopp_driver.h", "license": "mit", "size": 966}
### File: include/fast_io_driver/fast_io_async.h #pragma once #include"fast_io_hosted.h" //#include"fast_io_async/model.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/fast_io_async.h", "license": "mit", "size": 76}
### File: include/fast_io_driver/kernel.h #pragma once namespace fast_io::kernel { template<std::size_t wd=80,std::size_t ht=25> struct terminal { using char_type = char; static inline constexpr std::size_t vga_width=wd; static inline constexpr std::size_t vga_height=ht; std::size_t row{}; std::size_t column{}; ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/kernel.h", "license": "mit", "size": 2774}
### File: include/fast_io_driver/limine/kernel_console.h #pragma once namespace fast_io::limine { template<std::integral ch_type> requires (sizeof(ch_type)==1) struct basic_kernel_console { using char_type = ch_type; using function_ptr_type = void(*)(void const*, size_t) noexcept; function_ptr_type func_ptr{}; };...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/limine/kernel_console.h", "license": "mit", "size": 1326}
### File: include/fast_io_driver/linux_kernel.h #pragma once #include"../fast_io.h" #include"linux_kernel_impl/kpr.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/linux_kernel.h", "license": "mit", "size": 74}
### File: include/fast_io_driver/linux_kernel_impl/kpr.h #pragma once namespace fast_io { extern int linux_kernel_printk(char const* fmt, ...) noexcept __asm__("_printk"); enum class kern { emerg, alert, crit, warning, notice, info, debug, default_value, cont }; template<std::integral ch_type> struct basic_kpr { ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/linux_kernel_impl/kpr.h", "license": "mit", "size": 9196}
### File: include/fast_io_driver/llvm.h #pragma once #include"../fast_io.h" #include<llvm/Support/raw_ostream.h> #include"llvm_impl/hack_buffer_ptr.h" #include"llvm_impl/raw_ostream_io_observer.h" #if !defined(__AVR__) #include"llvm_impl/raw_fd_ostream_file.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/llvm.h", "license": "mit", "size": 232}
### File: include/fast_io_driver/llvm_impl/hack_buffer_ptr.h #pragma once #if defined(__GNUC__) || defined(__clang__) #pragma GCC system_header #endif namespace fast_io::llvm::details { class llvm_raw_ostream_model { public: void* ptr{}; ::llvm::raw_ostream::OStreamKind Kind; char *OutBufStart, *OutBufEnd, *OutB...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/llvm_impl/hack_buffer_ptr.h", "license": "mit", "size": 2423}
### File: include/fast_io_driver/llvm_impl/raw_fd_ostream_file.h #pragma once namespace fast_io::llvm { namespace details { inline ::llvm::raw_fd_ostream* open_llvm_raw_fd_ostream_from_fd(int fd) { return new ::llvm::raw_fd_ostream(fd,true); } inline ::llvm::raw_fd_ostream* open_llvm_raw_fd_ostream_from_fd_dup(::...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/llvm_impl/raw_fd_ostream_file.h", "license": "mit", "size": 4027}
### File: include/fast_io_driver/llvm_impl/raw_ostream_io_observer.h #pragma once namespace fast_io::llvm { template<std::integral ch_type,typename T> requires (std::derived_from<T,::llvm::raw_ostream>&&sizeof(ch_type)==1) class basic_general_raw_ostream_io_observer { public: using char_type = ch_type; using nativ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/llvm_impl/raw_ostream_io_observer.h", "license": "mit", "size": 4984}
### File: include/fast_io_driver/mangling.h #pragma once #if __has_include(<cxxabi.h>) #include<cxxabi.h> #endif #include<cstdlib> namespace fast_io { struct cxa_demangle { char* buffer{}; std::size_t length{}; explicit cxa_demangle(char const* mangled_name) noexcept { #if __has_include(<cxxabi.h>) int status{...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/mangling.h", "license": "mit", "size": 2043}
### File: include/fast_io_driver/mfc.h #pragma once #if defined(__ATLSTR_H__) #include"../fast_io_core.h" #include"mfc_impl/atl_cstring.h" #endif #if defined(__AFX_H__) #include"../fast_io_hosted.h" #include"mfc_impl/mfc_file.h" #endif #if defined(__ATLFILE_H__) #include"../fast_io_hosted.h" #include"mfc_impl/atl_fil...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/mfc.h", "license": "mit", "size": 295}
### File: include/fast_io_driver/mfc_impl/atl_cstring.h #pragma once namespace fast_io { template<std::integral ch_type,typename traits_type> inline constexpr cross_code_cvt_t<ch_type> print_alias_define(::fast_io::io_alias_t,::ATL::CStringT<ch_type, traits_type> const& atl_mfccstr) noexcept { return {{static_cast<...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/mfc_impl/atl_cstring.h", "license": "mit", "size": 1359}
### File: include/fast_io_driver/mfc_impl/atl_file.h #pragma once namespace fast_io { template<std::integral T> class basic_atl_io_observer { public: using char_type = T; using native_handle_type = CAtlFile*; native_handle_type phandle{}; explicit constexpr operator bool() const noexcept { return phandle; } ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/mfc_impl/atl_file.h", "license": "mit", "size": 6507}
### File: include/fast_io_driver/mfc_impl/mfc_file.h #pragma once namespace fast_io { template<std::integral T> class basic_mfc_io_observer { public: using char_type = T; using native_handle_type = CFile*; native_handle_type phandle{}; explicit constexpr operator bool() const noexcept { return phandle; } te...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/mfc_impl/mfc_file.h", "license": "mit", "size": 6065}
### File: include/fast_io_driver/nt_kernel.h #pragma once #include"../fast_io.h" #include"nt_kernel_impl/driver_object.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/nt_kernel.h", "license": "mit", "size": 81}
### File: include/fast_io_driver/nt_kernel_impl/driver_object.h #pragma once namespace fast_io::win32::nt { struct driver_object { std::int_least16_t Type; std::int_least16_t Size; driver_object* DeviceObject; std::uint_least32_t Flags; void* DriverStart; std::uint_least32_t DriverSize; vo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/nt_kernel_impl/driver_object.h", "license": "mit", "size": 498}
### File: include/fast_io_driver/openssl_driver.h #pragma once #include<openssl/macros.h> #ifdef OSSL_DEPRECATEDIN_3_0 #undef OSSL_DEPRECATEDIN_3_0 #define OSSL_DEPRECATEDIN_3_0 #endif #include<openssl/bio.h> #include<openssl/ssl.h> #include<openssl/err.h> #include<openssl/md5.h> #include<openssl/sha.h> #include<opens...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver.h", "license": "mit", "size": 730}
### File: include/fast_io_driver/openssl_driver/bio.h #pragma once struct bio_method_st { int type; char const *name; int (*bwrite) (BIO *, const char *, size_t, size_t *) noexcept; int (*bwrite_old) (BIO *, const char *, int) noexcept; int (*bread) (BIO *, char *, size_t, size_t *) noexcept; int (*bread_old) (BIO *, ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver/bio.h", "license": "mit", "size": 13791}
### File: include/fast_io_driver/openssl_driver/context.h #pragma once namespace fast_io { using ssl_context_observer = details::observer<SSL_CTX*>; enum class tls_method { tls, tls_server, tls_client, datagram_tls, datagram_server, datagram_client, }; namespace details { inline SSL_METHOD const* get_method(tls_me...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver/context.h", "license": "mit", "size": 1717}
### File: include/fast_io_driver/openssl_driver/crypto.h #pragma once namespace fast_io { class crypto { public: crypto(std::uint_least64_t opts,settings_observer sob) { if(!OPENSSL_init_crypto(opt,sob.native_handle())) throw_openssl_error(); } crypto(crypto const&)=delete; crypto const& operator=(crypto c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver/crypto.h", "license": "mit", "size": 324}
### File: include/fast_io_driver/openssl_driver/error.h #pragma once namespace fast_io { class openssl_error { public: }; inline void throw_openssl_error() { #ifdef __cpp_exceptions #if defined(_MSC_VER) && (!defined(_HAS_EXCEPTIONS) || _HAS_EXCEPTIONS == 0) fast_terminate(); #else throw openssl_error(); #endif ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver/error.h", "license": "mit", "size": 302}
### File: include/fast_io_driver/openssl_driver/evp.h #pragma once namespace fast_io { /* https://www.openssl.org/docs/man1.1.0/man3/EVP_PKEY_keygen.html #include <openssl/evp.h> int EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx); int EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey); int EVP_PKEY_paramgen_init(EVP...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver/evp.h", "license": "mit", "size": 6197}
### File: include/fast_io_driver/openssl_driver/hash.h #pragma once namespace fast_io::ossl { template<typename metainfotype> struct basic_ossl_hash_context { using meta_info_type = metainfotype; using native_handle_type = typename meta_info_type::ctx_type; native_handle_type handle; static inline constexpr std:...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver/hash.h", "license": "mit", "size": 5220}
### File: include/fast_io_driver/openssl_driver/init.h #pragma once namespace fast_io { class global_initializer { public: explicit global_initializer() noexcept { SSL_library_init(); } }; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver/init.h", "license": "mit", "size": 147}
### File: include/fast_io_driver/openssl_driver/observer.h #pragma once namespace fast_io::details { template<typename T> class observer { public: using native_handle_type = T; native_handle_type handle{}; constexpr operator bool() noexcept { return handle; } constexpr auto& native_handle() const noexcept {...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver/observer.h", "license": "mit", "size": 559}
### File: include/fast_io_driver/openssl_driver/ossl_lib_context.h #pragma once namespace fast_io { using ossl_lib_context_observer = details::observer<OSSL_LIB_CTX*>; class openssl_context:public ossl_lib_context_observer { public: openssl_context():ossl_lib_context_observer(OSSL_LIB_CTX_new()) { if(this->nati...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver/ossl_lib_context.h", "license": "mit", "size": 940}
### File: include/fast_io_driver/openssl_driver/settings.h #pragma once namespace fast_io { class settings { public: using native_handle_type = OPENSSL_INIT_SETTINGS*; native_handle_type ptr{}; constexpr operator native_handle_type() noexcept { return ptr; } constexpr settings(native_handle_type handle):sett...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver/settings.h", "license": "mit", "size": 1012}
### File: include/fast_io_driver/openssl_driver/ssl.h #pragma once namespace fast_io { template<std::integral ch_type> class basic_ssl_io_observer { public: using char_type = ch_type; using native_handle_type = SSL*; native_handle_type ssl{}; constexpr native_handle_type const& native_handle() const noexcept { ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/openssl_driver/ssl.h", "license": "mit", "size": 5920}
### File: include/fast_io_driver/posix_iconv.h #pragma once #include"../fast_io_device.h" #include"posix_iconv_impl/impl.h" namespace fast_io { template<std::integral char_type> using basic_oiconv_file = basic_io_buffer<onative_file, buffer_mode::out|buffer_mode::construct_decorator, basic_decorators<char_type,empty...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/posix_iconv.h", "license": "mit", "size": 1454}
### File: include/fast_io_driver/posix_iconv_impl/impl.h #pragma once #include<iconv.h> namespace fast_io { class posix_iconv_io_observer { public: using native_handle_type = iconv_t; iconv_t cd{std::bit_cast<iconv_t>(static_cast<uintptr_t>(-1))}; constexpr auto& native_handle() noexcept { return cd; } con...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/posix_iconv_impl/impl.h", "license": "mit", "size": 8999}
### File: include/fast_io_driver/pulseaudio.h #pragma once #include <pulse/pulseaudio.h> #include <pulse/simple.h> #include"../fast_io_hosted.h" namespace fast_io { class pulse_audio_error { public: int error{}; pulse_audio_error(int e=PA_OK):error(e){} #if 0 void report(error_reporter& err) const override { p...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/pulseaudio.h", "license": "mit", "size": 3767}
### File: include/fast_io_driver/python/pyobject.h #pragma once /* Create python's PyBytesObject by using fast_io's api */ #include"../../fast_io_core.h" #include<Python.h> #include<bytesobject.h> namespace fast_io { class pyobject_io_observer { public: using native_handle_type = PyObject*; native_handle_type p{}...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/python/pyobject.h", "license": "mit", "size": 5790}
### File: include/fast_io_driver/qt.h #pragma once #if __has_include(<QIODevice>) #include<QIODevice> #else #include<QtCore/QIODevice> #endif #if __has_include(<QFile>) #include<QFile> #else #include<QtCore/QFile> #endif #if __has_include(<QFileDevice>) #include<QFileDevice> #else #include<QtCore/QFileDevice> #endif ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/qt.h", "license": "mit", "size": 510}
### File: include/fast_io_driver/qt_impl/qdebug.h #pragma once namespace fast_io { template<std::integral ch_type> struct basic_qt_qdebug { using char_type = ch_type; QDebug pqdbg; }; using qt_qdebug = basic_qt_qdebug<char>; using wqt_qdebug = basic_qt_qdebug<wchar_t>; using u8qt_qdebug = basic_qt_qdebug<char8_t>...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/qt_impl/qdebug.h", "license": "mit", "size": 1619}
### File: include/fast_io_driver/qt_impl/qfile.h #pragma once namespace fast_io { namespace details { inline constexpr int to_qt_open_mode(open_mode mode) noexcept { int res{}; if((mode&open_mode::in)==open_mode::in) res|=QIODevice::ReadOnly; if((mode&open_mode::out)==open_mode::out) res|=QIODevice::WriteOnl...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/qt_impl/qfile.h", "license": "mit", "size": 5100}
### File: include/fast_io_driver/qt_impl/qiodevice.h #pragma once namespace fast_io { template<std::integral ch_type,typename T> class basic_general_qdevice_io_observer { public: using char_type = ch_type; using value_type = T; using native_handle_type = T*; native_handle_type qdevice{}; inline constexpr native...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/qt_impl/qiodevice.h", "license": "mit", "size": 5194}
### File: include/fast_io_driver/qt_impl/qstring.h #pragma once namespace fast_io { class qt_error { public: QString qstr; template<typename... Args> requires std::constructible_from<QString,Args...> qt_error(Args&& ...args):qstr(::std::forward<Args>(args)...){} QChar* data() noexcept { return qstr.data(); ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/qt_impl/qstring.h", "license": "mit", "size": 4130}
### File: include/fast_io_driver/refterm.h #pragma once namespace fast_io { namespace details { inline constexpr ::fast_io::manipulators::scalar_flags fast_pipe_hex_scl_flg{.base=16,.floating=::fast_io::manipulators::floating_format::fixed}; template<win32_family family> inline void* win32_family_refterm_fast_pipe...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/refterm.h", "license": "mit", "size": 1939}
### File: include/fast_io_driver/stvl2.h #pragma once #include"../fast_io_concept.h" #include"bootloader/stvl2.h" namespace fast_io { namespace details { template<std::integral char_type> inline constexpr std::size_t cal_stvl2_cstr_reserved_size(std::size_t sz) noexcept { constexpr bool ebcdic{::fast_io::details::...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/stvl2.h", "license": "mit", "size": 73223}
### File: include/fast_io_driver/timer.h #pragma once #include<string_view> namespace fast_io { struct timer { std::u8string_view s; unix_timestamp t0; #if __has_cpp_attribute(__gnu__::__cold__) [[__gnu__::__cold__]] #endif explicit timer(std::u8string_view strvw):s(strvw),t0(posix_clock_gettime(posix_clock_id...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/timer.h", "license": "mit", "size": 581}
### File: include/fast_io_driver/tsc_timer.h #pragma once #include<string_view> namespace fast_io { inline std::uint_least64_t current_tsc() noexcept { #if defined(_MSC_VER)&&!defined(__clang__) return __rdtsc(); #elif __has_builtin(__builtin_ia32_rdtsc) return __builtin_ia32_rdtsc(); #else return 0; #endif } str...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/tsc_timer.h", "license": "mit", "size": 761}
### File: include/fast_io_driver/win32_internet.h #pragma once #include<windows.h> #include<wininet.h> #undef min #undef max #undef interface namespace fast_io { class win32_internet_handle { public: void* handle{}; constexpr win32_internet_handle(){} constexpr win32_internet_handle(void* value):handle(value){}...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/win32_internet.h", "license": "mit", "size": 5457}
### File: include/fast_io_driver/win32_memory.h #pragma once #include"../fast_io_hosted.h" namespace fast_io { //https://github.com/MicrosoftDocs/windows-driver-docs/issues/1736 enum class win32_memory_page_protect:std::uint_least32_t { executed = 0x10, executed_read = 0x20, executed_readwrite = 0x40, executed_write...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/win32_memory.h", "license": "mit", "size": 17324}
### File: include/fast_io_driver/zlib_driver.h #pragma once #include<zlib.h> #include"zlib_driver/gzfile.h" namespace fast_io { }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_driver/zlib_driver.h", "license": "mit", "size": 88}