Searched refs:bytesize (Results 1 - 25 of 41) sorted by relevance

12

/macosx-10.10/ruby-106/ruby/lib/webrick/httpservlet/
H A Dcgihandler.rb62 cgi_in.write("%8d" % cgi_out.path.bytesize)
64 cgi_in.write("%8d" % cgi_err.path.bytesize)
66 cgi_in.write("%8d" % dump.bytesize)
69 if req.body and req.body.bytesize > 0
79 if errmsg.bytesize > 0
H A Dcgi_runner.rb16 size -= tmp.bytesize
H A Dabstract.rb144 if req.query_string && req.query_string.bytesize > 0
/macosx-10.10/ruby-106/ruby/lib/webrick/
H A Dhttpresponse.rb252 @header['content-length'] = @body ? @body.bytesize : 0
395 data << format("%x", buf.bytesize) << CRLF
399 @sent_size += buf.bytesize
418 body ? @body.bytesize : 0
422 data << format("%x", buf.bytesize) << CRLF
425 @sent_size += buf.bytesize
429 if @body && @body.bytesize > 0
431 @sent_size = @body.bytesize
440 offset -= buf.bytesize
452 size -= buf.bytesize
[all...]
H A Dhttprequest.rb417 if @request_line.bytesize >= MAX_URI_LENGTH and @request_line[-1, 1] != LF
477 @remaining_size -= buf.bytesize
504 if data.nil? || data.bytesize != chunk_size
H A Dutils.rb108 rand_max = RAND_CHARS.bytesize
/macosx-10.10/ruby-106/ruby/lib/rubygems/package/
H A Dtar_writer.rb43 if data.bytesize + @written > @limit
47 @written += data.bytesize
48 data.bytesize
270 raise Gem::Package::TooLongFileName if name.bytesize > 256
272 if name.bytesize <= 100 then
281 break if newname.bytesize + 1 + nxt.bytesize > 100
288 if name.bytesize > 100 or prefix.bytesize > 155 then
/macosx-10.10/Heimdal-398.1.2/appl/ftp/ftp/
H A Dftp_var.h87 extern int bytesize; /* local byte size in binary */
H A Dglobals.c46 int bytesize; /* local byte size in binary */ variable
/macosx-10.10/cxxfilt-11/cxxfilt/bfd/
H A Dmep-relocs.pl129 if (length($mask) == 8) { $bytesize = 0; }
130 elsif (length($mask) == 16) { $bytesize = 1; }
131 elsif (length($mask) == 32) { $bytesize = 2; }
142 $c, $bytesize, $bits, $left, $right, $pcrel, $overflow, $mask);
/macosx-10.10/ruby-106/ruby/test/ruby/
H A Dtest_pack.rb94 nuls.bytesize.times {|i|
127 nuls.bytesize.times {|i|
358 assert_equal(2, [1].pack("s").bytesize)
359 assert_equal(2, [1].pack("S").bytesize)
360 assert_operator(2, :<=, [1].pack("s!").bytesize)
361 assert_operator(2, :<=, [1].pack("S!").bytesize)
376 assert_operator(4, :<=, [1].pack("i").bytesize)
377 assert_operator(4, :<=, [1].pack("I").bytesize)
378 assert_operator(4, :<=, [1].pack("i!").bytesize)
379 assert_operator(4, :<=, [1].pack("I!").bytesize)
[all...]
H A Dtest_m17n_comb.rb651 if s1.bytesize > s2.bytesize
1005 assert_operator(s.length, :<=, s.bytesize)
1029 assert_equal(s.bytesize, t.bytesize)
1088 assert_equal(s.bytesize, r.bytesize + t.bytesize)
1477 assert_equal(s1.unpack("C*").length, s1.bytesize)
/macosx-10.10/ruby-106/ruby/lib/cgi/
H A Dcore.rb352 options["length"] = content.bytesize.to_s
476 content_length -= first_line.bytesize
477 status = stdin.read(first_line.bytesize)
484 boundary_size = "#{EOL}--#{boundary}#{EOL}".bytesize
511 len = pos + EOL.bytesize
513 buf = buf[(pos+separator.bytesize)..-1]
523 content_length -= c.bytesize
531 s = buf[0, len - $1.bytesize]
H A Dutil.rb9 '%' + $1.unpack('H2' * $1.bytesize).join('%').upcase
/macosx-10.10/ruby-106/ruby/lib/
H A Dpstore.rb408 size = empty_marshal_data.bytesize
412 size = data.bytesize
431 if new_data.bytesize != original_file_size || Digest::MD5.digest(new_data) != original_checksum
462 file.truncate(data.bytesize)
/macosx-10.10/ruby-106/ruby/lib/xmlrpc/
H A Dserver.rb415 http_error(400, "Bad Request") if data.nil? or data.bytesize != length
446 h['Content-length'] ||= body.bytesize.to_s
490 http_error(400, "Bad Request") if data.nil? or data.bytesize != length
521 h['Content-length'] ||= body.bytesize.to_s
683 if data.nil? or data.bytesize != length
688 if resp.nil? or resp.bytesize <= 0
693 response['Content-Length'] = resp.bytesize
H A Dclient.rb442 "Content-Length" => request.bytesize.to_s,
501 if data.nil? or data.bytesize == 0
502 raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
503 elsif expected != "<unknown>" and expected.to_i != data.bytesize and resp["Transfer-Encoding"].nil?
504 raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
/macosx-10.10/ruby-106/ruby/sample/
H A Dfrom.rb11 delta = char.bytesize > 1 ? 2 : 1
/macosx-10.10/BerkeleyDB-21/db/libdb_java/
H A Djava_typemaps.i398 size_t bytesize;
401 bytesize = sizeof(u_char) * len * len;
403 if ((err = __os_malloc(NULL, bytesize, &$1.lk_conflicts)) != 0) {
537 size_t bytesize, ldbtsize;
559 bytesize = sizeof(DB_LOCKREQ) * count;
560 if ((err = __os_malloc(env, bytesize, &lockreq)) != 0) {
564 memset(lockreq, 0, bytesize);
/macosx-10.10/ruby-106/ruby/ext/digest/lib/digest/
H A Dhmac.rb55 if key.bytesize > block_len
/macosx-10.10/ruby-106/ruby/test/rexml/
H A Dtest_entity.rb115 assert_equal(len * 2, xmldoc.root.text.bytesize)
/macosx-10.10/ruby-106/ruby/lib/rexml/
H A Dtext.rb387 if sum + s.bytesize > REXML.entity_expansion_text_limit
390 sum += s.bytesize
/macosx-10.10/ruby-106/ruby/tool/
H A Dmake-snapshot44 alias bytesize size unless method_defined?(:bytesize)
267 puts " SIZE: #{str.bytesize} bytes"
/macosx-10.10/xnu-2782.1.97/tools/lldbmacros/core/
H A Dcvalue.py320 bytesize = sbdata.GetByteSize()
321 if bytesize == 0 :
324 for i in range(0, bytesize) :
/macosx-10.10/ruby-106/ruby/include/ruby/
H A Dencoding.h299 VALUE rb_econv_substr_convert(rb_econv_t *ec, VALUE src, long byteoff, long bytesize, int flags);
301 VALUE rb_econv_substr_append(rb_econv_t *ec, VALUE src, long byteoff, long bytesize, VALUE dst, int flags);

Completed in 241 milliseconds

12