Home
last modified time | relevance | path

Searched refs:give (Results 1 – 25 of 26) sorted by relevance

12

/thrift-3.4.0/lib/cpp/src/thrift/transport/
DTBufferTransports.cpp57 uint32_t give = (std::min)(len, static_cast<uint32_t>(rBound_ - rBase_)); in readSlow() local
58 memcpy(buf, rBase_, give); in readSlow()
59 rBase_ += give; in readSlow()
61 return give; in readSlow()
164 uint32_t give = (std::min)(want, static_cast<uint32_t>(rBound_ - rBase_)); in readSlow() local
165 memcpy(buf, rBase_, give); in readSlow()
166 rBase_ += give; in readSlow()
167 want -= give; in readSlow()
319 uint32_t give = (std::min)(len, available_read()); in computeRead() local
322 *out_give = give; in computeRead()
[all …]
DTTransportUtils.cpp57 uint32_t give = need; in read() local
58 if (rLen_ - rPos_ < give) { in read()
59 give = rLen_ - rPos_; in read()
61 if (give > 0) { in read()
62 memcpy(buf, rBuf_ + rPos_, give); in read()
63 rPos_ += give; in read()
64 need -= give; in read()
DTHttpTransport.cpp158 uint32_t give = avail; in readContent() local
159 if (need < give) { in readContent()
160 give = need; in readContent()
162 readBuffer_.write((uint8_t*)(httpBuf_ + httpPos_), give); in readContent()
163 httpPos_ += give; in readContent()
164 need -= give; in readContent()
DTZlibTransport.cpp147 int give = (std::min)((uint32_t)readAvail(), need); in read() local
148 memcpy(buf, urbuf_ + urpos_, give); in read()
149 need -= give; in read()
150 buf += give; in read()
151 urpos_ += give; in read()
DTWebSocketServer.h96 uint32_t give = (std::min)(want, readBuffer_.available_read()); in readAll_virt() local
97 return readBuffer_.read(buf, give); in readAll_virt()
/thrift-3.4.0/lib/perl/lib/Thrift/
DMemoryBuffer.pm103 my $give = $len;
104 $give = $avail if $avail < $len;
106 $ret = substr($self->{buffer},$self->{rPos},$give);
108 $self->{rPos} += $give;
/thrift-3.4.0/lib/d/src/thrift/transport/
Dbuffered.d114 auto give = min(readAvail_.length, buf.length); in read() local
115 buf[0 .. give] = readAvail_[0 .. give]; in read()
116 readAvail_ = readAvail_[give .. $]; in read()
117 return give; in read()
Dzlib.d129 auto give = min(readAvail, buf.length); in read() local
133 buf[0 .. give] = urbuf_[urpos_ .. urpos_ + give]; in read()
134 buf = buf[give .. $]; in read()
135 urpos_ += give; in read()
Dhttp.d256 auto give = min(httpBufRemaining_.length, need); in readContent() local
257 readBuffer_.write(cast(ubyte[])httpBufRemaining_[0 .. give]); in readContent()
258 httpBufRemaining_ = httpBufRemaining_[give .. $]; in readContent()
259 need -= give; in readContent()
/thrift-3.4.0/lib/nodejs/lib/thrift/
Dws_transport.js170 var give = len;
173 give = avail;
176 var ret = this.read_buf.substr(this.rpos, give);
177 this.rpos += give;
Dxhr_connection.js228 var give = len;
231 give = avail;
234 var ret = this.read_buf.substr(this.rpos, give);
235 this.rpos += give;
/thrift-3.4.0/lib/c_glib/src/thrift/c_glib/transport/
Dthrift_memory_buffer.c80 guint32 give = len; in thrift_memory_buffer_read() local
91 give = t->buf->len; in thrift_memory_buffer_read()
94 memcpy (buf, t->buf->data, give); in thrift_memory_buffer_read()
95 g_byte_array_remove_range (t->buf, 0, give); in thrift_memory_buffer_read()
97 return give; in thrift_memory_buffer_read()
Dthrift_zlib_transport.c161 gint give; in thrift_zlib_transport_read_slow() local
167 give = thrift_zlib_transport_read_avail (transport); in thrift_zlib_transport_read_slow()
169 give = need; in thrift_zlib_transport_read_slow()
171 memcpy (buf_tmp, t->urbuf+t->urpos, give); in thrift_zlib_transport_read_slow()
172 if (give > need) { in thrift_zlib_transport_read_slow()
175 need -= give; in thrift_zlib_transport_read_slow()
177 buf_tmp += give; in thrift_zlib_transport_read_slow()
178 t->urpos += give; in thrift_zlib_transport_read_slow()
191 return give; in thrift_zlib_transport_read_slow()
Dthrift_buffered_transport.c120 guint32 give; in thrift_buffered_transport_read_slow() local
133 give = want < t->r_buf->len ? want : t->r_buf->len; in thrift_buffered_transport_read_slow()
136 memcpy ((guint8 *)buf + len - want, t->r_buf->data, give); in thrift_buffered_transport_read_slow()
137 t->r_buf = g_byte_array_remove_range (t->r_buf, 0, give); in thrift_buffered_transport_read_slow()
138 want -= give; in thrift_buffered_transport_read_slow()
Dthrift_framed_transport.c150 guint32 give = want < t->r_buf->len ? want : t->r_buf->len; in thrift_framed_transport_read_slow() local
153 memcpy ((guint8 *)buf + len - want, t->r_buf->data, give); in thrift_framed_transport_read_slow()
154 t->r_buf = g_byte_array_remove_range (t->r_buf, 0, give); in thrift_framed_transport_read_slow()
155 want -= give; in thrift_framed_transport_read_slow()
/thrift-3.4.0/lib/js/src/
Dthrift.js497 var give = len;
500 give = avail;
503 var ret = this.read_buf.substr(this.rpos, give);
504 this.rpos += give;
686 var give = len;
689 give = avail;
692 var ret = this.read_buf.substr(this.rpos, give);
693 this.rpos += give;
/thrift-3.4.0/test/
DDenseLinkingTest.thrift33 then compiling this should give errors because of doubly defined symbols.
/thrift-3.4.0/contrib/vagrant/centos-6.5/
DREADME.md22 #Create the vagrant user and give it sudo permission
/thrift-3.4.0/contrib/fb303/aclocal/
Dax_boost_base.m4184 …not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-bo…
/thrift-3.4.0/doc/licenses/
Dlgpl-2.1.txt41 or for a fee, you must give the recipients all the rights that we gave
278 You must give prominent notice with each copy of the work that the
307 least three years, to give the same user the materials
473 <one line to give the library's name and a brief idea of what it does.>
/thrift-3.4.0/aclocal/
Dax_boost_base.m4286 …not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-bo…
Dax_lua.m487 # the default behavior, give ':' as an action.
/thrift-3.4.0/doc/specs/
Dthrift-parameter-validation-proposal.md191 …rface of feedback messages. However, by practice we suggest developers to give below three detail …
Dthrift.tex589 The \texttt{TProtocol} abstractions are also designed to give protocol
/thrift-3.4.0/
DLICENSE95 (a) You must give any other recipients of the Work or

12