/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/ |
H A D | SslOverTdsStream.cs | 22 …te const int PACKET_SIZE_WITHOUT_HEADER = TdsEnums.DEFAULT_LOGIN_PACKET_SIZE - TdsEnums.HEADER_LEN; 53 byte[] packetData = new byte[count < TdsEnums.HEADER_LEN ? TdsEnums.HEADER_LEN : count]; in Read() 60 while (readBytes < TdsEnums.HEADER_LEN) in Read() 62 … readBytes += _stream.Read(packetData, readBytes, TdsEnums.HEADER_LEN - readBytes); in Read() 66 _packetBytes -= TdsEnums.HEADER_LEN; in Read() 116 byte[] combinedBuffer = new byte[TdsEnums.HEADER_LEN + currentCount]; in Write() 123 combinedBuffer[2] = (byte)((currentCount + TdsEnums.HEADER_LEN) / 0x100); in Write() 124 combinedBuffer[3] = (byte)((currentCount + TdsEnums.HEADER_LEN) % 0x100); in Write() 130 for(int i = TdsEnums.HEADER_LEN; i < combinedBuffer.Length; i++) in Write() 132 combinedBuffer[i] = buffer[currentOffset + (i - TdsEnums.HEADER_LEN)]; in Write()
|
/dports/www/firefox-esr/firefox-91.8.0/nsprpub/pr/tests/ |
H A D | sendzlf.c | 59 nexpected = HEADER_LEN+TRAILER_LEN+TRAILER_LEN+HEADER_LEN+HEADER_LEN; in ClientThread() 95 memcpy(header, HEADER_STR, HEADER_LEN); in ServerThread() 98 sfd.hlen = HEADER_LEN; in ServerThread() 109 if (HEADER_LEN+TRAILER_LEN != nbytes) { in ServerThread() 111 HEADER_LEN+TRAILER_LEN, nbytes); in ServerThread() 124 sfd.hlen = HEADER_LEN; in ServerThread() 128 if (HEADER_LEN != nbytes) { in ServerThread() 130 HEADER_LEN, nbytes); in ServerThread() 134 nbytes = PR_TransmitFile(acceptSock, file, header, HEADER_LEN, in ServerThread() 136 if (HEADER_LEN != nbytes) { in ServerThread() [all …]
|
/dports/www/firefox/firefox-99.0/nsprpub/pr/tests/ |
H A D | sendzlf.c | 59 nexpected = HEADER_LEN+TRAILER_LEN+TRAILER_LEN+HEADER_LEN+HEADER_LEN; in ClientThread() 95 memcpy(header, HEADER_STR, HEADER_LEN); in ServerThread() 98 sfd.hlen = HEADER_LEN; in ServerThread() 109 if (HEADER_LEN+TRAILER_LEN != nbytes) { in ServerThread() 111 HEADER_LEN+TRAILER_LEN, nbytes); in ServerThread() 124 sfd.hlen = HEADER_LEN; in ServerThread() 128 if (HEADER_LEN != nbytes) { in ServerThread() 130 HEADER_LEN, nbytes); in ServerThread() 134 nbytes = PR_TransmitFile(acceptSock, file, header, HEADER_LEN, in ServerThread() 136 if (HEADER_LEN != nbytes) { in ServerThread() [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/nsprpub/pr/tests/ |
H A D | sendzlf.c | 59 nexpected = HEADER_LEN+TRAILER_LEN+TRAILER_LEN+HEADER_LEN+HEADER_LEN; in ClientThread() 95 memcpy(header, HEADER_STR, HEADER_LEN); in ServerThread() 98 sfd.hlen = HEADER_LEN; in ServerThread() 109 if (HEADER_LEN+TRAILER_LEN != nbytes) { in ServerThread() 111 HEADER_LEN+TRAILER_LEN, nbytes); in ServerThread() 124 sfd.hlen = HEADER_LEN; in ServerThread() 128 if (HEADER_LEN != nbytes) { in ServerThread() 130 HEADER_LEN, nbytes); in ServerThread() 134 nbytes = PR_TransmitFile(acceptSock, file, header, HEADER_LEN, in ServerThread() 136 if (HEADER_LEN != nbytes) { in ServerThread() [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/nsprpub/pr/tests/ |
H A D | sendzlf.c | 59 nexpected = HEADER_LEN+TRAILER_LEN+TRAILER_LEN+HEADER_LEN+HEADER_LEN; in ClientThread() 95 memcpy(header, HEADER_STR, HEADER_LEN); in ServerThread() 98 sfd.hlen = HEADER_LEN; in ServerThread() 109 if (HEADER_LEN+TRAILER_LEN != nbytes) { in ServerThread() 111 HEADER_LEN+TRAILER_LEN, nbytes); in ServerThread() 124 sfd.hlen = HEADER_LEN; in ServerThread() 128 if (HEADER_LEN != nbytes) { in ServerThread() 130 HEADER_LEN, nbytes); in ServerThread() 134 nbytes = PR_TransmitFile(acceptSock, file, header, HEADER_LEN, in ServerThread() 136 if (HEADER_LEN != nbytes) { in ServerThread() [all …]
|
/dports/devel/nspr/nspr-4.33/nspr/pr/tests/ |
H A D | sendzlf.c | 59 nexpected = HEADER_LEN+TRAILER_LEN+TRAILER_LEN+HEADER_LEN+HEADER_LEN; in ClientThread() 95 memcpy(header, HEADER_STR, HEADER_LEN); in ServerThread() 98 sfd.hlen = HEADER_LEN; in ServerThread() 109 if (HEADER_LEN+TRAILER_LEN != nbytes) { in ServerThread() 111 HEADER_LEN+TRAILER_LEN, nbytes); in ServerThread() 124 sfd.hlen = HEADER_LEN; in ServerThread() 128 if (HEADER_LEN != nbytes) { in ServerThread() 130 HEADER_LEN, nbytes); in ServerThread() 134 nbytes = PR_TransmitFile(acceptSock, file, header, HEADER_LEN, in ServerThread() 136 if (HEADER_LEN != nbytes) { in ServerThread() [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/nsprpub/pr/tests/ |
H A D | sendzlf.c | 59 nexpected = HEADER_LEN+TRAILER_LEN+TRAILER_LEN+HEADER_LEN+HEADER_LEN; in ClientThread() 95 memcpy(header, HEADER_STR, HEADER_LEN); in ServerThread() 98 sfd.hlen = HEADER_LEN; in ServerThread() 109 if (HEADER_LEN+TRAILER_LEN != nbytes) { in ServerThread() 111 HEADER_LEN+TRAILER_LEN, nbytes); in ServerThread() 124 sfd.hlen = HEADER_LEN; in ServerThread() 128 if (HEADER_LEN != nbytes) { in ServerThread() 130 HEADER_LEN, nbytes); in ServerThread() 134 nbytes = PR_TransmitFile(acceptSock, file, header, HEADER_LEN, in ServerThread() 136 if (HEADER_LEN != nbytes) { in ServerThread() [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/nsprpub/pr/tests/ |
H A D | sendzlf.c | 59 nexpected = HEADER_LEN+TRAILER_LEN+TRAILER_LEN+HEADER_LEN+HEADER_LEN; in ClientThread() 95 memcpy(header, HEADER_STR, HEADER_LEN); in ServerThread() 98 sfd.hlen = HEADER_LEN; in ServerThread() 109 if (HEADER_LEN+TRAILER_LEN != nbytes) { in ServerThread() 111 HEADER_LEN+TRAILER_LEN, nbytes); in ServerThread() 124 sfd.hlen = HEADER_LEN; in ServerThread() 128 if (HEADER_LEN != nbytes) { in ServerThread() 130 HEADER_LEN, nbytes); in ServerThread() 134 nbytes = PR_TransmitFile(acceptSock, file, header, HEADER_LEN, in ServerThread() 136 if (HEADER_LEN != nbytes) { in ServerThread() [all …]
|
/dports/multimedia/transcode/transcode-1.1.7/import/ |
H A D | a52_decore.c | 44 #define HEADER_LEN 8 macro 116 memset(buf, 0, HEADER_LEN); in a52_decore() 148 bytes_read=tc_pread(decode->fd_in, &buf[2], HEADER_LEN-2); in a52_decore() 150 if(bytes_read< HEADER_LEN-2) { in a52_decore() 152 tc_log_msg(__FILE__, "read error (%d/%d)", bytes_read, HEADER_LEN-2); in a52_decore() 170 …if((bytes_read=tc_pread(decode->fd_in, &buf[HEADER_LEN], frame_size-HEADER_LEN)) < frame_size-HEAD… in a52_decore() 172 tc_log_msg(__FILE__, "read error (%d/%d)", bytes_read, frame_size-HEADER_LEN); in a52_decore() 238 … if((bytes_wrote=tc_pwrite(decode->fd_out, buf, bytes_read+HEADER_LEN)) < bytes_read+HEADER_LEN) { in a52_decore() 240 tc_log_error(__FILE__, "write error (%d/%d)", bytes_wrote, bytes_read+HEADER_LEN); in a52_decore()
|
/dports/security/libgringotts/libgringotts-1.2.1/src/ |
H A D | libgrg_tmp.c | 50 memcpy (tmpname + 5, gctx->header, HEADER_LEN); in grg_tmpfile_gen() 111 tocrypt = grg_memconcat (2, gctx->header, HEADER_LEN, data, dim); in grg_tmpfile_write() 115 if (mcrypt_generic (tf->crypt, tocrypt, dim + HEADER_LEN)) in grg_tmpfile_write() 118 grg_free (gctx, tocrypt, dim + HEADER_LEN); in grg_tmpfile_write() 123 write (tf->tmpfd, tocrypt, dim + HEADER_LEN); //read and write on the same system. in grg_tmpfile_write() 126 grg_free (gctx, tocrypt, dim + HEADER_LEN); in grg_tmpfile_write() 154 enc_data = (unsigned char *) malloc (dim + HEADER_LEN); in grg_tmpfile_read() 158 read (tf->tmpfd, enc_data, dim + HEADER_LEN); in grg_tmpfile_read() 160 if (mdecrypt_generic (tf->crypt, enc_data, dim + HEADER_LEN)) in grg_tmpfile_read() 166 if (memcmp (enc_data, gctx->header, HEADER_LEN) != 0) in grg_tmpfile_read() [all …]
|
/dports/security/suricata/suricata-6.0.4/src/tests/fuzz/ |
H A D | fuzz_applayerprotodetectgetproto.c | 15 #define HEADER_LEN 6 macro 32 if (size < HEADER_LEN) { in LLVMFuzzerTestOneInput() 57 …alproto = AppLayerProtoDetectGetProto(alpd_tctx, f, data+HEADER_LEN, size-HEADER_LEN, f->proto, da… in LLVMFuzzerTestOneInput() 64 for (size_t i = 0; i < size-HEADER_LEN && i < PROTO_DETECT_MAX_LEN; i++) { in LLVMFuzzerTestOneInput() 65 …alproto2 = AppLayerProtoDetectGetProto(alpd_tctx, f, data+HEADER_LEN, i, f->proto, data[0], &rever… in LLVMFuzzerTestOneInput() 69 (uintmax_t)i, (uintmax_t)size - HEADER_LEN, AppProtoToString(alproto2), in LLVMFuzzerTestOneInput()
|
/dports/graphics/drawpile/Drawpile-2.1.20/src/libshared/record/ |
H A D | header.cpp | 134 if(buffer.length() < protocol::Message::HEADER_LEN) in readRecordingMessage() 137 if(file->read(buffer.data(), protocol::Message::HEADER_LEN) != protocol::Message::HEADER_LEN) in readRecordingMessage() 146 const int payloadlen = len - protocol::Message::HEADER_LEN; in readRecordingMessage() 147 if(file->read(buffer.data()+protocol::Message::HEADER_LEN, payloadlen) != payloadlen) in readRecordingMessage() 158 char header[protocol::Message::HEADER_LEN]; in skipRecordingMessage() 160 if(file->read(header, protocol::Message::HEADER_LEN) != sizeof(protocol::Message::HEADER_LEN)) in skipRecordingMessage() 174 return protocol::Message::HEADER_LEN + payloadLen; in skipRecordingMessage()
|
/dports/www/nginx-full/lua-nginx-module-0.10.19/src/ |
H A D | ngx_http_lua_log_ringbuf.c | 20 HEADER_LEN = sizeof(ngx_http_lua_log_ringbuf_header_t), enumerator 69 if (rb->size - (rb->head - rb->data) < HEADER_LEN) in ngx_http_lua_log_ringbuf_next_header() 98 rb->tail += HEADER_LEN; in ngx_http_lua_log_ringbuf_append() 123 rb->head += HEADER_LEN + head->len; in ngx_http_lua_log_ringbuf_throw_away() 160 if (n + HEADER_LEN > rb->size) { in ngx_http_lua_log_ringbuf_write() 164 if (ngx_http_lua_log_ringbuf_free_spaces(rb) < n + HEADER_LEN) { in ngx_http_lua_log_ringbuf_write() 166 if ((size_t)(rb->data + rb->size - rb->tail) < n + HEADER_LEN) { in ngx_http_lua_log_ringbuf_write() 178 while (ngx_http_lua_log_ringbuf_free_spaces(rb) < n + HEADER_LEN) { in ngx_http_lua_log_ringbuf_write() 208 rb->head += HEADER_LEN; in ngx_http_lua_log_ringbuf_read()
|
/dports/net-p2p/c-lightning/lightning-0.10.2/wire/ |
H A D | wire_io.c | 16 #define HEADER_LEN (sizeof(wire_len_t)) macro 28 ret = read(fd, p + len, HEADER_LEN - len); in do_read_wire_header() 34 if (arg->u2.s == INSIDE_HEADER_BIT + HEADER_LEN) { in do_read_wire_header() 41 if (arg->u2.s != HEADER_LEN) in do_read_wire_header() 77 *data = tal_arr(ctx, u8, HEADER_LEN); in io_read_wire_() 91 ret = write(fd, (char *)&hdr + len, HEADER_LEN - len); in do_write_wire_header() 97 if (arg->u2.s == INSIDE_HEADER_BIT + HEADER_LEN) in do_write_wire_header()
|
/dports/news/tin/tin-2.4.5/include/ |
H A D | tinrc.h | 69 char default_goto_group[HEADER_LEN]; /* default for the 'g' command */ 70 char default_mail_address[HEADER_LEN]; 75 char default_post_newsgroups[HEADER_LEN]; /* default newsgroups to post to */ 87 char default_search_author[HEADER_LEN]; /* default when searching for author */ 89 char default_search_group[HEADER_LEN]; /* default when searching select screen */ 96 char mail_address[HEADER_LEN]; /* user's mail address */ 289 char attrib_from[HEADER_LEN]; 290 char attrib_mailing_list[HEADER_LEN]; 302 char attrib_x_headers[HEADER_LEN];
|
/dports/chinese/tin/tin-2.4.5/include/ |
H A D | tinrc.h | 69 char default_goto_group[HEADER_LEN]; /* default for the 'g' command */ 70 char default_mail_address[HEADER_LEN]; 75 char default_post_newsgroups[HEADER_LEN]; /* default newsgroups to post to */ 87 char default_search_author[HEADER_LEN]; /* default when searching for author */ 89 char default_search_group[HEADER_LEN]; /* default when searching select screen */ 96 char mail_address[HEADER_LEN]; /* user's mail address */ 289 char attrib_from[HEADER_LEN]; 290 char attrib_mailing_list[HEADER_LEN]; 302 char attrib_x_headers[HEADER_LEN];
|
/dports/www/firefox-esr/firefox-91.8.0/js/src/fuzz-tests/ |
H A D | testRegExp.cpp | 34 const uint32_t HEADER_LEN = 2; in testRegExpFuzz() local 35 if (size <= HEADER_LEN) { in testRegExpFuzz() 46 int32_t inputLength = size - HEADER_LEN - patternLength; in testRegExpFuzz() 48 const char* patternChars = reinterpret_cast<const char*>(buf + HEADER_LEN); in testRegExpFuzz() 52 patternLength = size - HEADER_LEN; in testRegExpFuzz()
|
/dports/lang/spidermonkey78/firefox-78.9.0/js/src/fuzz-tests/ |
H A D | testRegExp.cpp | 34 const uint32_t HEADER_LEN = 2; in testRegExpFuzz() local 35 if (size <= HEADER_LEN) { in testRegExpFuzz() 46 int32_t inputLength = size - HEADER_LEN - patternLength; in testRegExpFuzz() 48 const char* patternChars = reinterpret_cast<const char*>(buf + HEADER_LEN); in testRegExpFuzz() 52 patternLength = size - HEADER_LEN; in testRegExpFuzz()
|
/dports/www/firefox/firefox-99.0/js/src/fuzz-tests/ |
H A D | testRegExp.cpp | 34 const uint32_t HEADER_LEN = 2; in testRegExpFuzz() local 35 if (size <= HEADER_LEN) { in testRegExpFuzz() 46 int32_t inputLength = size - HEADER_LEN - patternLength; in testRegExpFuzz() 48 const char* patternChars = reinterpret_cast<const char*>(buf + HEADER_LEN); in testRegExpFuzz() 52 patternLength = size - HEADER_LEN; in testRegExpFuzz()
|
/dports/mail/thunderbird/thunderbird-91.8.0/js/src/fuzz-tests/ |
H A D | testRegExp.cpp | 34 const uint32_t HEADER_LEN = 2; in testRegExpFuzz() local 35 if (size <= HEADER_LEN) { in testRegExpFuzz() 46 int32_t inputLength = size - HEADER_LEN - patternLength; in testRegExpFuzz() 48 const char* patternChars = reinterpret_cast<const char*>(buf + HEADER_LEN); in testRegExpFuzz() 52 patternLength = size - HEADER_LEN; in testRegExpFuzz()
|
/dports/net/samba412/samba-4.12.15/source4/kdc/ |
H A D | kpasswd-service.c | 33 #define HEADER_LEN 6 macro 112 if (request->length <= HEADER_LEN) { in kpasswd_process() 129 if ((ap_req_len >= len) || ((ap_req_len + HEADER_LEN) >= len)) { in kpasswd_process() 134 ap_req_blob = data_blob_const(&request->data[HEADER_LEN], ap_req_len); in kpasswd_process() 137 enc_data_blob = data_blob_const(&request->data[HEADER_LEN + ap_req_len], in kpasswd_process() 338 HEADER_LEN + ap_rep_blob.length + enc_data_blob.length); in kpasswd_process() 345 memcpy(reply->data + HEADER_LEN, in kpasswd_process() 348 memcpy(reply->data + HEADER_LEN + ap_rep_blob.length, in kpasswd_process()
|
/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/h2-0.1.12/src/codec/ |
H A D | framed_read.rs | 78 let _ = $bytes.split_to(frame::HEADER_LEN); in decode_frame() 136 let res = frame::Settings::load(head, &bytes[frame::HEADER_LEN..]); in decode_frame() 144 let res = frame::Ping::load(head, &bytes[frame::HEADER_LEN..]); in decode_frame() 152 let res = frame::WindowUpdate::load(head, &bytes[frame::HEADER_LEN..]); in decode_frame() 160 let _ = bytes.split_to(frame::HEADER_LEN); in decode_frame() 173 let res = frame::Reset::load(head, &bytes[frame::HEADER_LEN..]); in decode_frame() 177 let res = frame::GoAway::load(&bytes[frame::HEADER_LEN..]); in decode_frame() 189 match frame::Priority::load(head, &bytes[frame::HEADER_LEN..]) { in decode_frame() 225 partial.buf = bytes.split_off(frame::HEADER_LEN); in decode_frame() 246 partial.buf.extend_from_slice(&bytes[frame::HEADER_LEN..]); in decode_frame()
|
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/test/hotspot/jtreg/serviceability/jdwp/ |
H A D | JdwpCmd.java | 38 private final int HEADER_LEN = 11; field in JdwpCmd 49 data = ByteBuffer.allocate(HEADER_LEN + dataLen); in JdwpCmd() 50 data.putInt(HEADER_LEN + dataLen); in JdwpCmd() 73 channel.write(data.array(), HEADER_LEN + getDataLength()); in send()
|
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/test/hotspot/jtreg/serviceability/jdwp/ |
H A D | JdwpCmd.java | 38 private final int HEADER_LEN = 11; field in JdwpCmd 49 data = ByteBuffer.allocate(HEADER_LEN + dataLen); in JdwpCmd() 50 data.putInt(HEADER_LEN + dataLen); in JdwpCmd() 73 channel.write(data.array(), HEADER_LEN + getDataLength()); in send()
|
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/test/hotspot/jtreg/serviceability/jdwp/ |
H A D | JdwpCmd.java | 38 private final int HEADER_LEN = 11; field in JdwpCmd 49 data = ByteBuffer.allocate(HEADER_LEN + dataLen); in JdwpCmd() 50 data.putInt(HEADER_LEN + dataLen); in JdwpCmd() 73 channel.write(data.array(), HEADER_LEN + getDataLength()); in send()
|