ucx/buffer.h

changeset 165
4d85da1f98db
parent 163
5ec9a2ca6328
child 166
350a0e3898bd
equal deleted inserted replaced
164:1fa3f13f774c 165:4d85da1f98db
143 * 143 *
144 * The new position is relative to the <code>whence</code> argument. 144 * The new position is relative to the <code>whence</code> argument.
145 * 145 *
146 * SEEK_SET marks the start of the buffer. 146 * SEEK_SET marks the start of the buffer.
147 * SEEK_CUR marks the current position. 147 * SEEK_CUR marks the current position.
148 * SEEK_END marks the first 0-byte in the buffer. 148 * SEEK_END marks the end of the buffer.
149 *
150 * With an offset of zero, this function sets the buffer position to zero
151 * (SEEK_SET), the buffer size (SEEK_END) or leaves the buffer position
152 * unchanged (SEEK_CUR).
149 * 153 *
150 * @param buffer 154 * @param buffer
151 * @param offset position offset relative to <code>whence</code> 155 * @param offset position offset relative to <code>whence</code>
152 * @param whence one of SEEK_SET, SEEK_CUR or SEEK_END 156 * @param whence one of SEEK_SET, SEEK_CUR or SEEK_END
153 * @return 0 on success, non-zero if the position is invalid 157 * @return 0 on success, non-zero if the position is invalid

mercurial