Home | History | Annotate | Download | only in base

Lines Matching refs:bytes

61   // Returns the number of bytes available to read from the current stream
66 // buf_len bytes will be copied into buf. (In other words, partial reads are
67 // allowed.) Returns the number of bytes copied, 0 if at end-of-file, or an
86 // Performs the same as Read, but ensures that exactly buf_len bytes
88 // end-of-file or fatal error. Returns the number of bytes copied into buf,
89 // 0 if at end-of-file and no bytes have been read into buf yet,
94 // buf_len bytes will be written from buf. (In other words, partial writes are
95 // allowed.) Returns the number of bytes written, or an error code if the
114 // Truncates the file to be |bytes| length. This is only valid for writable
115 // files. After truncation the file stream is positioned at |bytes|. The new
119 int64 Truncate(int64 bytes);