text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: include/fast_io_driver/zlib_driver/gzfile.h #pragma once namespace fast_io::zlib { namespace details { struct gz_state_model{ /* exposed contents for gzgetc() macro */ struct gzFile_s x; /* "x" for exposed */ /* x.have: number of bytes available at x.next */ ...
{"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/gzfile.h", "license": "mit", "size": 7765}
### File: include/fast_io_dsal/impl/vector.h #pragma once namespace fast_io { namespace containers { namespace details { struct #if __has_cpp_attribute(__gnu__::__may_alias__) [[__gnu__::__may_alias__]] #endif vector_model { char8_t* begin_ptr; char8_t* curr_ptr; char8_t* end_ptr; }; inline constexpr void swap(...
{"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_dsal/impl/vector.h", "license": "mit", "size": 35938}
### File: include/fast_io_dsal/vector.h #pragma once #undef min #undef max #if !defined(__cplusplus) #error "You must be using a C++ compiler" #endif #if defined(_MSC_VER) && !defined(__clang__) #pragma warning(push) #pragma warning( disable : 4464 ) #pragma warning( disable : 4514 ) #pragma warning( disable : 4623 )...
{"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_dsal/vector.h", "license": "mit", "size": 1255}
### File: include/fast_io_freestanding.h #pragma once //fast_io_freestanding.h is usable when the underlining system implements dynamic memory allocations and exceptions #if !defined(__cplusplus) #error "You are not using a C++ compiler" #endif #if !defined(__cpp_concepts) #error "fast_io requires at least C++20 sta...
{"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_freestanding.h", "license": "mit", "size": 3044}
### File: include/fast_io_freestanding_impl/auto_indent.h #pragma once namespace fast_io { namespace manipulators { template<std::integral char_type,typename containe> struct auto_indent_t { using container_type = containe; std::size_t total_size; char_type const* first; char_type const* last; container_type 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_freestanding_impl/auto_indent.h", "license": "mit", "size": 4095}
### File: include/fast_io_freestanding_impl/cond.h #pragma once namespace fast_io { namespace manipulators { template<typename T1,typename T2> struct condition { using manip_tag = manip_tag_t; using alias_type1 = T1; using alias_type2 = T2; alias_type1 t1; alias_type2 t2; bool pred; }; template<typename T1,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_freestanding_impl/cond.h", "license": "mit", "size": 5071}
### File: include/fast_io_freestanding_impl/exception.h #pragma once namespace fast_io { namespace details { inline cross_code_cvt_t<char8_t> ehvw_common_impl(char const* c_str) noexcept { using char8_const_may_alias_ptr #if __has_cpp_attribute(__gnu__::__may_alias__) [[__gnu__::__may_alias__]] #endif = char8_t 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_freestanding_impl/exception.h", "license": "mit", "size": 606}
### File: include/fast_io_freestanding_impl/generator.h #pragma once //https://github.com/lewissbaker/cppcoro/blob/master/include/cppcoro/generator.hpp namespace fast_io { template<typename T> class generator; namespace details { template<typename T> class generator_promise { public: using element_type = T; using ...
{"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_freestanding_impl/generator.h", "license": "mit", "size": 4642}
### File: include/fast_io_freestanding_impl/io_buffer/general.h #pragma once namespace fast_io { template<stream handletype,buffer_mode mde,typename decorators_type,std::size_t bfs> inline constexpr void flush(basic_io_buffer<handletype,mde,decorators_type,bfs>& bios) { if constexpr((mde&buffer_mode::out)==buffer_m...
{"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_freestanding_impl/io_buffer/general.h", "license": "mit", "size": 2168}
### File: include/fast_io_freestanding_impl/io_buffer/impl.h #pragma once #include"mode.h" #include"main.h" #include"output.h" #include"input.h" #include"general.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_freestanding_impl/io_buffer/impl.h", "license": "mit", "size": 108}
### File: include/fast_io_freestanding_impl/io_buffer/input.h #pragma once #include"input_normal.h" #include"input_deco.h" namespace fast_io { template<zero_copy_input_stream handletype, buffer_mode mde, typename decorators, std::size_t bfs> requires ((mde&buffer_mode::in)==buffer_mode::in&&!details::has_internal_de...
{"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_freestanding_impl/io_buffer/input.h", "license": "mit", "size": 7065}
### File: include/fast_io_freestanding_impl/io_buffer/input_deco.h #pragma once namespace fast_io::details { template<bool nsecure,stream T,typename decot,std::integral char_type> inline constexpr bool ibuffer_underflow_rl_impl_deco(T t,decot deco, basic_io_buffer_pointers_with_cap<char_type>& ibuffer, basic_io_bu...
{"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_freestanding_impl/io_buffer/input_deco.h", "license": "mit", "size": 4909}
### File: include/fast_io_freestanding_impl/io_buffer/input_normal.h #pragma once namespace fast_io::details { template<stream T,std::integral char_type> inline constexpr bool ibuffer_underflow_rl_impl(T t,basic_io_buffer_pointers<char_type>& ibuffer,std::size_t bfsz) { if(ibuffer.buffer_begin==nullptr) ibuffer.b...
{"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_freestanding_impl/io_buffer/input_normal.h", "license": "mit", "size": 1718}
### File: include/fast_io_freestanding_impl/io_buffer/main.h #pragma once #if defined(__GNUC__) || defined(__clang__) #pragma GCC system_header #endif namespace fast_io { struct empty_decorator { }; template<std::integral ch_type, typename internaltype=empty_decorator, typename externaltype=empty_decorator> struct...
{"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_freestanding_impl/io_buffer/main.h", "license": "mit", "size": 13648}
### File: include/fast_io_freestanding_impl/io_buffer/mode.h #pragma once namespace fast_io { enum class buffer_mode { in=1<<0, out=1<<1, tie=1<<2, io=in|out|tie, secure_clear=1<<3, construct_decorator=1<<4, deco_out_no_internal=(1<<5)|(out) }; inline constexpr buffer_mode operator&(buffer_mode x, buffer_mode y) no...
{"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_freestanding_impl/io_buffer/mode.h", "license": "mit", "size": 2665}
### File: include/fast_io_freestanding_impl/io_buffer/output.h #pragma once #include"output_normal.h" #include"output_deco.h" namespace fast_io { namespace details { template<typename T,::std::random_access_iterator Iter> #if __has_cpp_attribute(__gnu__::__cold__) [[__gnu__::__cold__]] #endif inline constexpr void ...
{"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_freestanding_impl/io_buffer/output.h", "license": "mit", "size": 6476}
### File: include/fast_io_freestanding_impl/io_buffer/output_deco.h #pragma once namespace fast_io::details { template<typename T,typename decot,std::integral char_type,::std::random_access_iterator Iter> inline constexpr void iobuf_write_unhappy_decay_no_alloc_impl_deco(T t,decot deco, basic_io_buffer_pointers<cha...
{"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_freestanding_impl/io_buffer/output_deco.h", "license": "mit", "size": 3085}
### File: include/fast_io_freestanding_impl/io_buffer/output_normal.h #pragma once namespace fast_io::details { template<typename char_type,typename Iter> concept allow_iobuf_punning = ::std::contiguous_iterator<Iter>&& //temporary only allow contiguous_iterator before we finish this part (std::same_as<char_type,::...
{"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_freestanding_impl/io_buffer/output_normal.h", "license": "mit", "size": 4014}
### File: include/fast_io_freestanding_impl/scanners/impl.h #pragma once #include"line_scanner.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_freestanding_impl/scanners/impl.h", "license": "mit", "size": 42}
### File: include/fast_io_freestanding_impl/scanners/line_scanner.h #pragma once namespace fast_io { template<std::integral char_type> struct basic_line_scanner_buffer { struct buffer_type { char_type *begin_ptr{}; char_type *curr_ptr{}; char_type *end_ptr{}; constexpr buffer_type() noexcept:begin_ptr(nul...
{"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_freestanding_impl/scanners/line_scanner.h", "license": "mit", "size": 7988}
### File: include/fast_io_freestanding_impl/serializations/impl.h #pragma once #include"lebe.h" #include"leb128.h" #include"str_get.h" #include"strlike_get.h" #include"wasm.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_freestanding_impl/serializations/impl.h", "license": "mit", "size": 114}
### File: include/fast_io_freestanding_impl/serializations/leb128.h #pragma once namespace fast_io { namespace manipulators { template<typename value_type> struct basic_leb128_get_put { using manip_tag = manip_tag_t; #ifndef __INTELLISENSE__ #if __has_cpp_attribute(msvc::no_unique_address) [[msvc::no_unique_addres...
{"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_freestanding_impl/serializations/leb128.h", "license": "mit", "size": 8457}
### File: include/fast_io_freestanding_impl/serializations/lebe.h #pragma once namespace fast_io::details { template<::std::size_t sz> inline constexpr bool supported_lebe_size{sz==8||sz==16||sz==32||sz==64||sz==128}; #ifdef __SIZEOF_INT128__ using pesudo_int128type = __uint128_t; #else struct pesudo_int128type { ...
{"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_freestanding_impl/serializations/lebe.h", "license": "mit", "size": 19572}
### File: include/fast_io_freestanding_impl/serializations/str_get.h #pragma once namespace fast_io { namespace manipulators { template<typename T> struct basic_str_get_all { using manip_tag = manip_tag_t; #ifndef __INTELLISENSE__ #if __has_cpp_attribute(msvc::no_unique_address) [[msvc::no_unique_address]] #elif ...
{"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_freestanding_impl/serializations/str_get.h", "license": "mit", "size": 4027}
### File: include/fast_io_freestanding_impl/serializations/strlike_get.h #pragma once namespace fast_io { namespace details { template<bool noskipws,bool line> inline constexpr ::fast_io::manipulators::scalar_flags strlike_default_scalar_flags{.noskipws=noskipws,.line=line}; } namespace manipulators { 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_freestanding_impl/serializations/strlike_get.h", "license": "mit", "size": 11271}
### File: include/fast_io_freestanding_impl/serializations/wasm.h #pragma once /* Referenced from https://github.com/sunfishcode/wasm-reference-manual/blob/master/WebAssembly.md#primitive-encoding-types */ namespace fast_io::manipulators { template<::std::floating_point T> inline constexpr auto wasm_float_put(T 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_freestanding_impl/serializations/wasm.h", "license": "mit", "size": 1287}
### File: include/fast_io_freestanding_impl/space_reserve.h #pragma once namespace fast_io { template<typename Function> struct space_reserve { using function_type = Function; std::size_t size{}; #ifndef __INTELLISENSE__ #if __has_cpp_attribute(msvc::no_unique_address) [[msvc::no_unique_address]] #elif __has_cpp_a...
{"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_freestanding_impl/space_reserve.h", "license": "mit", "size": 850}
### File: include/fast_io_freestanding_impl/width.h #pragma once namespace fast_io { namespace manipulators { template<typename T> inline constexpr auto width(scalar_placement placement,T&& t,std::size_t n) noexcept { using noref = std::remove_cvref_t<T>; if constexpr(alias_printable<std::remove_cvref_t<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_freestanding_impl/width.h", "license": "mit", "size": 20789}
### File: include/fast_io_hosted.h #pragma once /* https://en.cppreference.com/w/cpp/freestanding There are two kinds of implementations defined by the C++ standard: hosted and freestanding implementations. For hosted implementations the set of standard library headers required by the C++ standard is much larger ...
{"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_hosted.h", "license": "mit", "size": 3938}
### File: include/fast_io_hosted/api_encoding_converter/impl.h #pragma once #include"std_filesystem_pseudo.h" #include"nt.h" #include"posix.h" #if defined(_WIN32) || defined(__CYGWIN__) namespace fast_io { enum class win32_family { ansi_9x, wide_nt, #ifdef _WIN32_WINDOWS native = ansi_9x #else native = wide_nt #endi...
{"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_hosted/api_encoding_converter/impl.h", "license": "mit", "size": 1297}
### File: include/fast_io_hosted/api_encoding_converter/nt.h #pragma once namespace fast_io { template<typename Allocator> struct basic_nt_api_encoding_converter { using allocator_type = Allocator; using char_type = char16_t; std::size_t buffer_capacity; char_type* buffer_data; char_type* buffer_data_end; templ...
{"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_hosted/api_encoding_converter/nt.h", "license": "mit", "size": 2663}
### File: include/fast_io_hosted/api_encoding_converter/posix.h #pragma once namespace fast_io { template<typename Allocator> struct basic_posix_api_encoding_converter { using allocator_type = Allocator; using char_type = char8_t; std::size_t buffer_capacity; char_type* buffer_data; char_type* buffer_data_end; ...
{"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_hosted/api_encoding_converter/posix.h", "license": "mit", "size": 5975}
### File: include/fast_io_hosted/api_encoding_converter/std_filesystem_pseudo.h #pragma once namespace fast_io::details { template<typename T> concept cxx_std_filesystem_pseudo_concept = requires(T t) { typename T::value_type; {t.native().c_str()}->std::same_as<typename T::value_type const*>; {t.native().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_hosted/api_encoding_converter/std_filesystem_pseudo.h", "license": "mit", "size": 1178}
### File: include/fast_io_hosted/api_encoding_converter/win32.h #pragma once namespace fast_io { namespace details { template<typename allocator_type,std::integral char_type,typename Func> requires (sizeof(char_type)!=sizeof(char16_t)) inline auto nt_api_common_code_cvt_impl(char_type const* filename_c_str,std::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_hosted/api_encoding_converter/win32.h", "license": "mit", "size": 4747}
### File: include/fast_io_hosted/async_coro.h #pragma once namespace fast_io { //This is DAMN bullshit struct task { struct promise_type { constexpr auto get_return_object() { return task{}; } constexpr auto initial_suspend() { return std::suspend_never{}; } constexpr auto final_suspend() { return std::suspend_never{...
{"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_hosted/async_coro.h", "license": "mit", "size": 5954}
### File: include/fast_io_hosted/auto_indent.h #pragma once namespace fast_io { template<std::ranges::contiguous_range rg,typename containe=::fast_io::containers::vector<std::size_t,::fast_io::native_thread_local_allocator>> requires std::integral<std::ranges::range_value_t<rg>> inline constexpr auto auto_indent(rg&...
{"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_hosted/auto_indent.h", "license": "mit", "size": 628}
### File: include/fast_io_hosted/box.h #pragma once #if defined(_MSC_VER) && !defined(_KERNEL_MODE) #pragma comment(lib,"user32.lib") #endif namespace fast_io { template<win32_family family,std::integral ch_type> struct basic_win32_family_box_t { using char_type = ch_type; explicit constexpr basic_win32_family_bo...
{"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_hosted/box.h", "license": "mit", "size": 3103}
### File: include/fast_io_hosted/dbg/android.h #pragma once namespace fast_io { struct android_logmessage_meta_base { std::int_least32_t priority{4}; char const* tag{""}; }; struct android_logmessage_meta_v30 { std::int_least32_t buffer_id{}; std::int_least32_t priority{4}; char const* tag{""}; char const* fi...
{"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_hosted/dbg/android.h", "license": "mit", "size": 7983}
### File: include/fast_io_hosted/dbg/common.h #pragma once namespace fast_io { enum class cfmt_format { stdio, stdio_no_floating, windows_nt, }; }
{"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_hosted/dbg/common.h", "license": "mit", "size": 107}
### File: include/fast_io_hosted/dbg/err.h #pragma once namespace fast_io { inline auto dbg() noexcept { return native_stderr<char>(); } inline auto wdbg() noexcept { return native_stderr<wchar_t>(); } inline auto u8dbg() noexcept { return native_stderr<char8_t>(); } inline auto u16dbg() noexcept { return 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_hosted/dbg/err.h", "license": "mit", "size": 372}
### File: include/fast_io_hosted/dbg/impl.h #pragma once #if defined(__BIONIC__) && __has_include(<android/log.h>) #include"android.h" #elif ((defined(_WIN32)&&!defined(__WINE__)) || defined(__CYGWIN__)) #include"nt_dbg.h" #if defined(_WIN32_WINDOWS) #include"err.h" #endif #else #include"err.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_hosted/dbg/impl.h", "license": "mit", "size": 262}
### File: include/fast_io_hosted/dbg/nt_dbg.h #pragma once namespace fast_io { template<std::integral ch_type> struct basic_nt_dbg { using char_type = ch_type; std::uint_least32_t component_id{UINT_LEAST32_MAX}; std::uint_least32_t level{}; static inline constexpr std::size_t output_buffer_alignment_size{512u}; ...
{"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_hosted/dbg/nt_dbg.h", "license": "mit", "size": 5208}
### File: include/fast_io_hosted/dll/dll.h #pragma once #if defined(_WIN32) || defined(__CYGWIN__) #include "win32.h" #endif #if (!defined(_WIN32)|| defined(__WINE__)) && (__has_include(<dlfcn.h>)&&(defined(__CYGWIN__) || (!defined(__NEWLIB__)&&!defined(__wasi__)))) #include <dlfcn.h> #include "posix.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_hosted/dll/dll.h", "license": "mit", "size": 273}
### File: include/fast_io_hosted/dll/posix.h #pragma once namespace fast_io { inline constexpr int dll_mode_to_posix_rtld_mode(dll_mode mode) noexcept { int m{}; #if defined(RTLD_LAZY) if((mode&dll_mode::posix_rtld_lazy)==dll_mode::posix_rtld_lazy) m|=RTLD_LAZY; #endif #if defined(RTLD_NOW) if((mode&dll_mode::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_hosted/dll/posix.h", "license": "mit", "size": 5969}
### File: include/fast_io_hosted/dll/win32.h #pragma once namespace fast_io { inline constexpr std::uint_least32_t dll_mode_to_win32_ex_flags(dll_mode mode) noexcept { std::uint_least32_t flags{}; if((mode&dll_mode::win32_dont_resolve_dll_references)==dll_mode::win32_dont_resolve_dll_references) flags|=0x0000000...
{"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_hosted/dll/win32.h", "license": "mit", "size": 7082}
### File: include/fast_io_hosted/file_loaders/allocation_file_loader.h #pragma once /* Unfinished due to some issues */ namespace fast_io { namespace details { template<typename Allocator> inline constexpr posix_file_loader_return_value_t allocation_load_file_common_impl(posix_at_entry pate) { auto fsize{posix_load...
{"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_hosted/file_loaders/allocation_file_loader.h", "license": "mit", "size": 5808}
### File: include/fast_io_hosted/file_loaders/impl.h #pragma once #if !(defined(_WIN32)&&defined(__BIONIC__)) #include"posix_file_loader.h" #endif #if defined(_WIN32) || defined(__CYGWIN__) #include"win32_file_loader.h" #endif namespace fast_io { #if defined(_WIN32) && !defined(__WINE__) using native_file_loader = ...
{"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_hosted/file_loaders/impl.h", "license": "mit", "size": 522}
### File: include/fast_io_hosted/file_loaders/posix_file_loader.h #pragma once #if defined(__linux__) && defined(__NR_statx) && !defined(__statx_defined) #include<linux/stat.h> #endif #if defined(__has_builtin) #if !__has_builtin(__builtin_malloc) || !__has_builtin(__builtin_free) #include<cstdlib> #endif #elif !defi...
{"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_hosted/file_loaders/posix_file_loader.h", "license": "mit", "size": 14659}
### File: include/fast_io_hosted/file_loaders/win32_file_loader.h #pragma once namespace fast_io { namespace win32::details { struct win32_file_loader_return_value_t { char* address_begin; char* address_end; }; inline win32_file_loader_return_value_t win32_load_address_common_impl(void* hfilemappingobj,std::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_hosted/file_loaders/win32_file_loader.h", "license": "mit", "size": 7036}
### File: include/fast_io_hosted/filesystem/apis.h #pragma once namespace fast_io::details { enum class posix_api_22 { renameat, linkat }; enum class posix_api_12 { symlinkat }; enum class posix_api_1x { faccessat, utimensat, fchmodat, fchownat, fstatat, mkdirat, mknodat, unlinkat }; }
{"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_hosted/filesystem/apis.h", "license": "mit", "size": 242}
### File: include/fast_io_hosted/filesystem/fsutils.h #pragma once namespace fast_io::details { template<std::integral char_type> inline constexpr char_type const* my_rfind_dot(char_type const* first,char_type const* last) noexcept { for(;first!=last;--last) { auto fp1{last}; --fp1; if(*fp1==u8'.') return...
{"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_hosted/filesystem/fsutils.h", "license": "mit", "size": 1627}
### File: include/fast_io_hosted/filesystem/native.h #pragma once #include"apis.h" #include"fsutils.h" #if (!defined(__NEWLIB__)||defined(__CYGWIN__)) && !defined(_WIN32) && !defined(__MSDOS__) && __has_include(<dirent.h>) && !defined(_PICOLIBC__) #include"posix.h" #include"posix_at.h" #endif #if defined(_WIN32) ||...
{"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_hosted/filesystem/native.h", "license": "mit", "size": 330}
### File: include/fast_io_hosted/filesystem/nt.h #pragma once namespace fast_io { /* https://github.com/reactos/reactos/blob/7ffb6a09c370ef51de554a1ce913f871d72b76ca/dll/win32/kernel32/client/file/find.c#L647 HANDLE WINAPI FindFirstFileExW(IN LPCWSTR lpFileName, IN FINDEX_INFO_LEVELS fInfoLevelId, ...
{"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_hosted/filesystem/nt.h", "license": "mit", "size": 17785}
### File: include/fast_io_hosted/filesystem/nt_at.h #pragma once namespace fast_io { enum class nt_at_flags:std::uint_least32_t { eaccess=static_cast<std::uint_least32_t>(1), symlink_nofollow=static_cast<std::uint_least32_t>(1)<<1, no_automount=static_cast<std::uint_least32_t>(1)<<2, removedir=static_cast<std::uint_...
{"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_hosted/filesystem/nt_at.h", "license": "mit", "size": 11793}
### File: include/fast_io_hosted/filesystem/posix.h #pragma once #include <dirent.h> namespace fast_io { namespace details { inline int dirp_to_fd(DIR* dirp) noexcept { if(dirp==nullptr) return -1; #if defined(__CYGWIN__) return dirp->__d_fd; #else return dirfd(dirp); #endif } } class posix_directory_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_hosted/filesystem/posix.h", "license": "mit", "size": 12356}
### File: include/fast_io_hosted/filesystem/posix_at.h #pragma once namespace fast_io { namespace posix { extern int libc_faccessat(int dirfd,char const* pathname,int mode, int flags) noexcept __asm__("faccessat"); extern int libc_renameat(int olddirfd,char const* oldpath,int newdirfd, char const* newpath) 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_hosted/filesystem/posix_at.h", "license": "mit", "size": 23337}
### File: include/fast_io_hosted/iomutex.h #pragma once namespace fast_io { template<stream T,typename Mutex> requires requires(Mutex&& m) { m.lock(); m.unlock(); m.try_lock(); } struct basic_general_iomutex { using mutex_type = Mutex; using unlocked_handle_type = T; using char_type = typename unlocked_handle_...
{"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_hosted/iomutex.h", "license": "mit", "size": 2289}
### File: include/fast_io_hosted/mmap.h #pragma once namespace fast_io { /* enum class mapping { indeterminate,private,shared,copy_on_write,clean }; */ enum class file_map_attribute { execute_read=0x20,execute_read_write=0x40,execute_write_copy=0x80, read_only=0x02,read_write=0x04,write_copy=0x08 }; }
{"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_hosted/mmap.h", "license": "mit", "size": 269}
### File: include/fast_io_hosted/platforms/com_error.h #pragma once #include <comdef.h> namespace fast_io { #if 0 namespace details { inline void report_com_error(error_reporter& report, auto hresult) requires(std::same_as<TCHAR,char>) { _com_error ce(hresult); print_freestanding(report,cstring_view{ce.ErrorMessa...
{"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_hosted/platforms/com_error.h", "license": "mit", "size": 825}
### File: include/fast_io_hosted/platforms/errc_default_impl.h #pragma once namespace fast_io { namespace freestanding { using ::std::errc; } }
{"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_hosted/platforms/errc_default_impl.h", "license": "mit", "size": 85}
### File: include/fast_io_hosted/platforms/errc_impl.h #pragma once namespace fast_io { namespace freestanding { enum class errc: ::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_hosted/platforms/errc_impl.h", "license": "mit", "size": 111}
### File: include/fast_io_hosted/platforms/errno_to_win32_code.h #pragma once case 0: return 0; #if defined(EACCES) case EACCES: return 5; #endif #if defined(EAGAIN) case EAGAIN: return 89; #endif #if defined(EBADF) case EBADF: return 6; #endif #if defined(EBADRQC) case EBADRQC: return 1; #endif #if defined(EBUSY) cas...
{"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_hosted/platforms/errno_to_win32_code.h", "license": "mit", "size": 2287}
### File: include/fast_io_hosted/platforms/linux/aarch64.h #pragma once namespace fast_io { template<std::size_t syscall_number,std::signed_integral return_value_type> requires (1<sizeof(return_value_type)) inline return_value_type system_call() noexcept { register std::uint_least64_t x8 __asm__("x8") = syscall_num...
{"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_hosted/platforms/linux/aarch64.h", "license": "mit", "size": 4907}
### File: include/fast_io_hosted/platforms/linux/amd64.h #pragma once //https://github.com/bminor/glibc/master/sysdeps/unix/sysv/linux/x86_64/sysdep.h namespace fast_io { template<std::size_t syscall_number,std::signed_integral return_value_type> requires (1<sizeof(return_value_type)) inline return_value_type system...
{"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_hosted/platforms/linux/amd64.h", "license": "mit", "size": 3681}
### File: include/fast_io_hosted/platforms/linux/generic.h #pragma once #include<unistd.h> #include<sys/syscall.h> namespace fast_io { template<std::size_t syscall_number,std::signed_integral return_value_type,typename... Args> requires (std::is_trivially_copyable_v<Args>&&...) inline return_value_type system_call(A...
{"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_hosted/platforms/linux/generic.h", "license": "mit", "size": 703}
### File: include/fast_io_hosted/platforms/linux/loongarch64.h #pragma once /* Referenced from glibc loongarch loongarch syscall is very similar to riscv. but it is using syscall instruction like x86_64 */ namespace fast_io { template<std::uint_least64_t syscall_number,std::signed_integral return_value_type> require...
{"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_hosted/platforms/linux/loongarch64.h", "license": "mit", "size": 5053}
### File: include/fast_io_hosted/platforms/linux/riscv64.h #pragma once /* https://github.com/riscvarchive/riscv-musl/blob/develop/arch/riscv64/syscall_arch.h Do we need to deal with big endian with extra code??? */ namespace fast_io { template<std::uint_least64_t syscall_number,std::signed_integral return_value_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_hosted/platforms/linux/riscv64.h", "license": "mit", "size": 5005}
### File: include/fast_io_hosted/platforms/linux/system_call.h #pragma once #if defined(__linux__) #include<asm/unistd.h> #ifdef __x86_64__ #include"amd64.h" #elif defined(__arm64__) || defined(__aarch64__) #include"aarch64.h" #elif defined(__riscv) && __SIZEOF_SIZE_T__==8 #include"riscv64.h" #elif defined(__loongar...
{"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_hosted/platforms/linux/system_call.h", "license": "mit", "size": 1236}
### File: include/fast_io_hosted/platforms/linux_zerocopy.h #pragma once // To verify __NR_copy_file_range namespace fast_io { template<std::integral ch_type> struct basic_linux_zero_copy_entry { int fd{-1}; }; template<std::integral ch_type> inline basic_linux_zero_copy_entry<ch_type> zero_copy_in_handle(basic_pos...
{"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_hosted/platforms/linux_zerocopy.h", "license": "mit", "size": 4018}
### File: include/fast_io_hosted/platforms/msdos.h #pragma once namespace fast_io { /* MSDOS should not contain any issues with multiple write calls */ namespace details { inline io_scatter_status_t posix_scatter_read_impl_with_normal_read(int fd,io_scatters_t scatters) { std::size_t total_size{}; for(std::size_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_hosted/platforms/msdos.h", "license": "mit", "size": 1511}
### File: include/fast_io_hosted/platforms/native.h #pragma once #include"native_base.h" #if defined(_WIN32) || defined(__CYGWIN__) #include"win32_mapping.h" #if defined(__CYGWIN__) #include"posix_mapping.h" #endif #include"omap.h" #elif !defined(__NEWLIB__) && !defined(__MSDOS__) && (!defined(__wasm__) || (defined(__...
{"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_hosted/platforms/native.h", "license": "mit", "size": 391}
### File: include/fast_io_hosted/platforms/native_base.h #pragma once #if defined(_WIN32) || defined(__CYGWIN__) #include"win32/impl.h" namespace fast_io { inline constexpr std::uint_least32_t win32_stdin_number(static_cast<std::uint_least32_t>(-10)); inline constexpr std::uint_least32_t win32_stdout_number(static_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_hosted/platforms/native_base.h", "license": "mit", "size": 3658}
### File: include/fast_io_hosted/platforms/nt.h #pragma once namespace fast_io { /* Referenced from Windows Internal Version 7 */ enum class nt_family { alpc, //Alpc: Advanced Local Procedure Calls cc, //Cc: Common Cache cm, //Cm: Configuration manager dbg, //Dbg: kernel debug support dbgk, //Dbgk: Debugging Framewo...
{"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_hosted/platforms/nt.h", "license": "mit", "size": 43575}
### File: include/fast_io_hosted/platforms/nt/impl.h #pragma once #include"nt_definitions.h" #include"nt_linker.h" #include"rtl_unicode_string_unique_ptr.h" #include"nt_code.h" #include"nt_path.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_hosted/platforms/nt/impl.h", "license": "mit", "size": 147}
### File: include/fast_io_hosted/platforms/nt/nt_code.h #pragma once namespace fast_io { struct nt_code { std::uint_least32_t ntstatus{}; }; inline constexpr std::uintptr_t domain_define(error_type_t<nt_code>) noexcept { if constexpr(sizeof(std::uintptr_t)<=sizeof(std::uint_least16_t)) return 63612u; else if 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_hosted/platforms/nt/nt_code.h", "license": "mit", "size": 2910}
### File: include/fast_io_hosted/platforms/nt/nt_definitions.h #pragma once namespace fast_io::win32::nt { struct ansi_string { std::uint_least16_t Length; std::uint_least16_t MaximumLength; char* Buffer; }; struct unicode_string { std::uint_least16_t Length; std::uint_least16_t MaximumLength; char16_t* Buffer; }...
{"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_hosted/platforms/nt/nt_definitions.h", "license": "mit", "size": 19800}
### File: include/fast_io_hosted/platforms/nt/nt_linker.h #pragma once namespace fast_io::win32::nt { #if defined(_MSC_VER) && !defined(__clang__) __declspec(dllimport) #elif (__has_cpp_attribute(__gnu__::__dllimport__)&&!defined(__WINE__)) [[__gnu__::__dllimport__]] #endif #if (__has_cpp_attribute(__gnu__::__stdcal...
{"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_hosted/platforms/nt/nt_linker.h", "license": "mit", "size": 50797}
### File: include/fast_io_hosted/platforms/nt/nt_path.h #pragma once namespace fast_io::win32::nt::details { inline std::uint_least16_t nt_filename_bytes(std::size_t sz) { if constexpr(sizeof(sz)<sizeof(std::uint_least16_t))//sizeof(std::size_t) can never be smaller than sizeof(std::uint_least16_t) return 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_hosted/platforms/nt/nt_path.h", "license": "mit", "size": 6159}
### File: include/fast_io_hosted/platforms/nt/rtl_unicode_string_unique_ptr.h #pragma once namespace fast_io::win32::nt { struct rtl_unicode_string_unique_ptr { unicode_string* heap_ptr{}; constexpr rtl_unicode_string_unique_ptr()=default; constexpr rtl_unicode_string_unique_ptr(unicode_string* ptr):heap_ptr(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_hosted/platforms/nt/rtl_unicode_string_unique_ptr.h", "license": "mit", "size": 916}
### File: include/fast_io_hosted/platforms/omap.h #pragma once namespace fast_io { template<std::integral ch_type> class basic_omemory_map { public: using char_type = ch_type; char_type *begin_ptr{},*curr_ptr{},*end_ptr{}; constexpr basic_omemory_map() = default; constexpr basic_omemory_map(native_memory_map_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_hosted/platforms/omap.h", "license": "mit", "size": 3807}
### File: include/fast_io_hosted/platforms/posix.h #pragma once #if ((defined(_WIN32)&&!defined(__WINE__)&&!defined(__BIONIC__))&&!defined(__CYGWIN__)) || defined(__MSDOS__) #if __has_include(<corecrt_io.h>) #include<corecrt_io.h> #elif __has_include(<io.h>) #include<io.h> #endif #endif #if __has_include(<fcntl.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_hosted/platforms/posix.h", "license": "mit", "size": 56090}
### File: include/fast_io_hosted/platforms/posix_dns.h #pragma once namespace fast_io { struct #if __has_cpp_attribute(__gnu__::__may_alias__) [[__gnu__::__may_alias__]] #endif posix_addrinfo { int ai_flags{}; int ai_family{}; int ai_socktype{}; int ai_protocol{}; ...
{"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_hosted/platforms/posix_dns.h", "license": "mit", "size": 6425}
### File: include/fast_io_hosted/platforms/posix_file_lock.h #pragma once namespace fast_io { namespace details { inline int fcntl_file_lock(int fd,int cmd,struct flock const* lockp) { return ::fcntl(fd,cmd,__builtin_addressof(lockp)); } inline void posix_file_lock_lock_common_impl(int fd,struct flock const& lockp)...
{"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_hosted/platforms/posix_file_lock.h", "license": "mit", "size": 4317}
### File: include/fast_io_hosted/platforms/posix_mapping.h #pragma once #include <sys/mman.h> #include <sys/stat.h> namespace fast_io { namespace details { inline std::byte* sys_mmap(void *addr, size_t len, int prot, int flags, int fd, std::uintmax_t offset) { #if defined(__linux__) && defined(__NR_mmap) && !define...
{"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_hosted/platforms/posix_mapping.h", "license": "mit", "size": 8215}
### File: include/fast_io_hosted/platforms/posix_netmode.h #pragma once namespace fast_io { using posix_socklen_t=::socklen_t; using native_socklen_t=posix_socklen_t; inline constexpr int to_posix_sock_family(sock_family dom) noexcept { switch(dom) { #ifdef AF_ALG case sock_family::alg: return AF_ALG; #endif #ifd...
{"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_hosted/platforms/posix_netmode.h", "license": "mit", "size": 14190}
### File: include/fast_io_hosted/platforms/posix_netop.h #pragma once namespace fast_io { template<std::integral ch_type> inline void posix_connect(basic_posix_io_observer<ch_type> h,void const* addr,posix_socklen_t addrlen) { details::posix_connect_posix_socket_impl(h.fd,addr,addrlen); } template<std::integral ch...
{"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_hosted/platforms/posix_netop.h", "license": "mit", "size": 4302}
### File: include/fast_io_hosted/platforms/systemcall_details.h #pragma once namespace fast_io::details { #ifdef __MSDOS__ extern int dup(int) noexcept __asm__("dup"); extern int dup2(int,int) noexcept __asm__("dup2"); extern int _close(int) noexcept __asm__("_close"); #elif defined(__wasi__) extern int dup(int) noe...
{"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_hosted/platforms/systemcall_details.h", "license": "mit", "size": 1560}
### File: include/fast_io_hosted/platforms/win32.h #pragma once namespace fast_io { namespace details { namespace win32 { /* Reference from crypto++'s osrng. Based on information from cryptopp, microsoft patched KB238187 because this api has issues before Windows Server 2012 R2 We use an implementation referenced 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_hosted/platforms/win32.h", "license": "mit", "size": 51874}
### File: include/fast_io_hosted/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_hosted/platforms/win32/apis.h", "license": "mit", "size": 80168}
### File: include/fast_io_hosted/platforms/win32/impl.h #pragma once #include"win32_definitions.h" #include"apis.h" #if defined(_MSC_VER) && !defined(_WIN32_WINDOWS) && !defined(_KERNEL_MODE) #pragma comment(lib,"bcrypt.lib") #endif #if defined(_MSC_VER) && !defined(__clang__) #include"msvc_linker.h" #endif #inclu...
{"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_hosted/platforms/win32/impl.h", "license": "mit", "size": 278}
### File: include/fast_io_hosted/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_hosted/platforms/win32/msvc_linker.h", "license": "mit", "size": 212}
### File: include/fast_io_hosted/platforms/win32/msvc_linker_32.h #pragma once #pragma comment(linker,"/alternatename:__imp_?GetLastError@win32@fast_io@@YAIXZ=__imp_GetLastError") #pragma comment(linker,"/alternatename:__imp_?LoadLibraryA@win32@fast_io@@YAPAXPBD@Z=__imp_LoadLibraryA") #pragma comment(linker,"/alternat...
{"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_hosted/platforms/win32/msvc_linker_32.h", "license": "mit", "size": 21708}
### File: include/fast_io_hosted/platforms/win32/msvc_linker_32_i686.h #pragma once #pragma comment(linker,"/alternatename:__imp_?GetLastError@win32@fast_io@@YGIXZ=__imp__GetLastError@0") #pragma comment(linker,"/alternatename:__imp_?LoadLibraryA@win32@fast_io@@YGPAXPBD@Z=__imp__LoadLibraryA@4") #pragma comment(linker...
{"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_hosted/platforms/win32/msvc_linker_32_i686.h", "license": "mit", "size": 22285}
### File: include/fast_io_hosted/platforms/win32/msvc_linker_64.h #pragma once #pragma comment(linker,"/alternatename:__imp_?GetLastError@win32@fast_io@@YAIXZ=__imp_GetLastError") #pragma comment(linker,"/alternatename:__imp_?LoadLibraryA@win32@fast_io@@YAPEAXPEBD@Z=__imp_LoadLibraryA") #pragma comment(linker,"/altern...
{"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_hosted/platforms/win32/msvc_linker_64.h", "license": "mit", "size": 22101}
### File: include/fast_io_hosted/platforms/win32/utils.h #pragma once namespace fast_io::win32 { constexpr unix_timestamp to_unix_timestamp(filetime ft) noexcept { std::uint_least64_t date_time{(static_cast<std::uint_least64_t>(ft.dwHighDateTime)<<32)|ft.dwLowDateTime}; /* 116444736000000000 18446744073709551616 ...
{"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_hosted/platforms/win32/utils.h", "license": "mit", "size": 1436}
### File: include/fast_io_hosted/platforms/win32/win32_definitions.h #pragma once namespace fast_io::win32 { struct overlapped { std::conditional_t<(sizeof(std::uintptr_t)>4),std::uint_least64_t,std::uint_least32_t> Internal,InternalHigh; union dummy_union_name_t { struct dummy_struct_name_t { std::uint_least32_t Of...
{"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_hosted/platforms/win32/win32_definitions.h", "license": "mit", "size": 7817}
### File: include/fast_io_hosted/platforms/win32_code.h #pragma once namespace fast_io { struct win32_code { std::uint_least32_t ec{}; }; inline constexpr std::uintptr_t domain_define(error_type_t<win32_code>) noexcept { if constexpr(sizeof(std::uintptr_t)<=sizeof(std::uint_least16_t)) return 8987u; else if 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_hosted/platforms/win32_code.h", "license": "mit", "size": 4411}
### File: include/fast_io_hosted/platforms/win32_code_to_errno.h #pragma once case 0: return 0; #if defined(EACCES) case 5:return EACCES; #endif #if defined(EAGAIN) case 89:case 164:case 996:case 997:case 1451:case 1452:case 1453:case 1454:case 1455:case 2401:case 2402:case 2404:return EAGAIN; #endif #if defined(EBADF...
{"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_hosted/platforms/win32_code_to_errno.h", "license": "mit", "size": 3001}
### File: include/fast_io_hosted/platforms/win32_error.h #pragma once namespace fast_io { namespace details { inline constexpr int eother_value{ #if defined(EOTHER) EOTHER #else 131 #endif }; inline constexpr int win32_code_to_errno(std::uint_least32_t code) noexcept { switch(code) { #include"win32_code_to_errno...
{"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_hosted/platforms/win32_error.h", "license": "mit", "size": 4861}
### File: include/fast_io_hosted/platforms/win32_iocp_overlapped.h #pragma once namespace fast_io { class iocp_overlapped_base:public fast_io::win32::overlapped { public: constexpr iocp_overlapped_base():fast_io::win32::overlapped{} {} #if __cpp_constexpr >= 201907L constexpr #endif virtual void invoke(std::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_hosted/platforms/win32_iocp_overlapped.h", "license": "mit", "size": 370}