ServerJS/Binary/B: Difference between revisions

remove + operator and valueOf (the first not being implementable and the second being ununderstood)
(move join the ByteString constructor, remove toString(charset))
(remove + operator and valueOf (the first not being implementable and the second being ununderstood))
Line 91: Line 91:
; substring(first)
; substring(first)
; substring(first, last)
; substring(first, last)
; The + operator returning new ByteStrings
; The immutable [] operator returning ByteStrings
; The immutable [] operator returning ByteStrings
; toSource() which would return "ByteString([])" for a null byte string
; toSource() which would return "ByteString([])" for a null byte string
; valueOf()


ByteString does not implement toUpperCase() or toLowerCase() since they are not meaningful without the context of a charset.
ByteString does not implement toUpperCase() or toLowerCase() since they are not meaningful without the context of a charset.
Line 157: Line 155:
; splice()
; splice()
; toSource() returns a string like "ByteArray([])" for a null byte-array.
; toSource() returns a string like "ByteArray([])" for a null byte-array.
; valueOf()
; The + operator returning new ByteArrays
; The mutable [] operator for numbers
; The mutable [] operator for numbers


62

edits