- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for Truncation (0.19 sec)
-
src/bytes/buffer.go
func (b *Buffer) Truncate(n int) { if n == 0 { b.Reset() return } b.lastRead = opInvalid if n < 0 || n > b.Len() { panic("bytes.Buffer: truncation out of range") } b.buf = b.buf[:b.off+n] } // Reset resets the buffer to be empty, // but it retains the underlying storage for use by future writes. // Reset is the same as [Buffer.Truncate](0).
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 17:10:31 GMT 2023 - 15.7K bytes - Viewed (0) -
doc/go1.17_spec.html
The conversion always yields a valid value; there is no indication of overflow. </li> <li> When converting a floating-point number to an integer, the fraction is discarded (truncation towards zero). </li> <li> When converting an integer or floating-point number to a floating-point type, or a complex number to another complex type, the result value is rounded
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
src/archive/tar/reader_test.go
err: ErrHeader, }, { // BSD tar v3.1.2 rejects a PAX path with NUL in the value, while // GNU tar v1.27.1 simply truncates at first NUL. // We emulate the behavior of BSD since it is strange doing NUL // truncations since PAX records are length-prefix strings instead // of NUL-terminated C-strings. file: "testdata/pax-nul-path.tar", err: ErrHeader, }, { file: "testdata/neg-size.tar", err: ErrHeader, }, {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Nov 21 21:14:38 GMT 2022 - 47.1K bytes - Viewed (0) -
doc/go_spec.html
The conversion always yields a valid value; there is no indication of overflow. </li> <li> When converting a <a href="#Numeric_types">floating-point number</a> to an integer, the fraction is discarded (truncation towards zero). </li> <li> When converting an integer or floating-point number to a floating-point type, or a <a href="#Numeric_types">complex number</a> to another complex type, the result value is rounded
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu May 02 22:43:51 GMT 2024 - 279.6K bytes - Viewed (0)