ServerJS/Binary/B: Difference between revisions

m
→‎Specification: more definition lists
(→‎Specification: convert more methods to a definition list (ultimately all methods should be converted like this))
m (→‎Specification: more definition lists)
Line 133: Line 133:
The String prototype will be extended with the following members:
The String prototype will be extended with the following members:


* toByteArray(codec)
; toByteArray(codec)
* toByteString(codec)
: Converts a string to a ByteArray encoded in codec.
* charCodes() -> Array of charcode:Number
; toByteString(codec)
: Converts a string to a ByteString encoded in codec.
; charCodes()
: Returns an array of Unicode code points (as numbers).


== Array ==
== Array ==
Line 141: Line 144:
The Array prototype will be extended with the following members:
The Array prototype will be extended with the following members:


* toByteArray(codec)
; toByteArray(codec)
* toByteString(codec)
: Converts an array of Unicode code points to a ByteArray encoded in codec.
; toByteString(codec)
: Converts an array of Unicode code points to a ByteString encoded in codec.


== General Requirements ==
== General Requirements ==
62

edits