55
edits
| Line 94: | Line 94: | ||
;append(b Binary, [begin Number], [end Number]) | ;append(b Binary, [begin Number], [end Number]) | ||
:Append a | :Append b or, if begin and end are specified, a subrange of b to the end of the buffer, increasing its length by the number of appended bytes. This is equal to setting the stream's position to the value of its length property and then calling write(b). | ||
;insert(pos Number, b Binary, [begin Number], [end Number]) | ;insert(pos Number, b Binary, [begin Number], [end Number]) | ||
:Insert a | :Insert b or, if begin and end are specified, a subrange of b at the given position, moving any bytes above that position and increasing the buffer's length by the number of inserted bytes. | ||
;toByteString() ByteString | ;toByteString() ByteString | ||
| Line 122: | Line 122: | ||
;append(s String, [begin Number], [end Number]) | ;append(s String, [begin Number], [end Number]) | ||
:Append s or, if begin and end are specified, a substring of s to the end of the buffer. This is equal to setting the stream's position to the value of its length property | :Append s or, if begin and end are specified, a substring of s to the end of the buffer, increasing its length by the number of appended characters. This is equal to setting the stream's position to the value of its length property and then calling write(s). | ||
;insert(pos Number, s String, [begin Number], [end Number]) | ;insert(pos Number, s String, [begin Number], [end Number]) | ||
:Insert s or, if begin and end are specified, a substring of s at the given position, moving any characters above that position and increasing the length | :Insert s or, if begin and end are specified, a substring of s at the given position, moving any characters above that position and increasing the buffer's length by the length of the inserted string. | ||
;toString() String | ;toString() String | ||
:Return the value of the whole buffer as String | :Return the value of the whole buffer as String | ||
edits