Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
String
/
//opt/alt/ruby27/share/ri/system/String/sum-i.ri
U:RDoc::AnyMethod[iI"sum:ETI"String#sum;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"NReturns a basic <em>n</em>-bit checksum of the characters in <i>str</i>, ;TI"Dwhere <em>n</em> is the optional Integer parameter, defaulting ;TI"Mto 16. The result is simply the sum of the binary value of each byte in ;TI"N<i>str</i> modulo <code>2**n - 1</code>. This is not a particularly good ;TI"checksum.;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I" str.sum(n=16) -> integer ;T0[ I"(*args);T@FI"String;TcRDoc::NormalClass00