Next: Implementation Hints, Previous: Inserting And Deleting Objects, Up: Buffer Protocol
Return the object at the offset in the buffer. The first object has offset 0. If
offsetis less than zero or greater than or equal to the size of the buffer, ano-such-offsetcondition is signaled.
Set the object at the offset in the buffer. The first object has offset 0. If
offsetis less than zero or greater than or equal to the size of the buffer, ano-such-offsetcondition is signaled.
Return the contents of the buffer starting at
offset1and ending at offset2-1 as a sequence. If either of the offsets is less than zero or greater than or equal to the size of the buffer, ano-such-offsetcondition is signaled. Ifoffset2is smaller than or equal tooffset1, an empty sequence will be returned.
Return the object that is immediately before the mark. If mark is at the beginning of the buffer, a
no-such-offsetcondition is signaled. If the mark is at the beginning of a line, but not at the beginning of the buffer, a newline character is returned.
Return the object that is immediately after the mark. If mark is at the end of the buffer, a
no-such-offsetcondition is signaled. If the mark is at the end of a line, but not at the end of the buffer, a newline character is returned.
Return a freshly allocated sequence of the objects after
mark1and beforemark2. An error is signaled if the two marks are positioned in different buffers. If mark1 is positioned at an offset equal to or greater than that ofmark2, an empty sequence is returned. It is acceptable to pass an offset in place of one of the marks. This function callsbuffer-sequencewith the appropriate arguments.