MCPcopy Create free account
hub / github.com/catboost/catboost / encode

Method encode

contrib/libs/zeromq/src/socks.cpp:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void zmq::socks_greeting_encoder_t::encode (const socks_greeting_t &greeting_)
36{
37 uint8_t *ptr = _buf;
38
39 *ptr++ = 0x05;
40 *ptr++ = static_cast<uint8_t> (greeting_.num_methods);
41 for (uint8_t i = 0; i < greeting_.num_methods; i++)
42 *ptr++ = greeting_.methods[i];
43
44 _bytes_encoded = 2 + greeting_.num_methods;
45 _bytes_written = 0;
46}
47
48int zmq::socks_greeting_encoder_t::output (fd_t fd_)
49{

Callers 15

get_flake8_configFunction · 0.45
to_strFunction · 0.45
encodeFunction · 0.45
strings.pyFile · 0.45
ConvertibleClass · 0.45
__str__Method · 0.45
test_to_unicodeFunction · 0.45
test_to_strFunction · 0.45
test_to_str_transcodeFunction · 0.45

Calls 2

sizeMethod · 0.45
c_strMethod · 0.45

Tested by 15

__str__Method · 0.36
test_to_unicodeFunction · 0.36
test_to_strFunction · 0.36
test_to_str_transcodeFunction · 0.36
test_stringize_deepFunction · 0.36
test_unicodize_deepFunction · 0.36