********************** The byte-vector Module ********************** .. current-library:: common-dylan .. current-module:: byte-vector .. module:: byte-vector .. note:: Many of the names exported from the ``byte-vector`` module are imported from :mod:`dylan-extensions` and re-exported. .. type:: :equivalent: ``limited(, of: )`` :seealso: - :type:`` .. type:: :equivalent: ``limited(, min: 0, max: 255)`` .. generic-function:: byte-storage-address :open: Returns the address of the raw byte storage of an object. :signature: byte-storage-address (the-buffer) => (result-offset) :parameter the-buffer: An instance of :drm:``. :value result-offset: An instance of :class:``. :seealso: - :meth:`byte-storage-address()` - :meth:`byte-storage-address()` - :meth:`byte-storage-address()` - :gf:`byte-storage-offset-address` .. method:: byte-storage-address :specializer: :sealed: :no-contents-entry: Returns the address of the raw byte storage of a :drm:``. :seealso: - :gf:`byte-storage-address` .. method:: byte-storage-address :specializer: :sealed: :no-contents-entry: Returns the address of the raw byte storage of a :class:``. :seealso: - :gf:`byte-storage-address` .. generic-function:: byte-storage-offset-address :open: Returns the address of the raw byte storage of an object, with an offset. :signature: byte-storage-offset-address (the-buffer data-offset) => (result-offset) :parameter the-buffer: An instance of :drm:``. :parameter data-offset: An instance of :drm:``. :value result-offset: An instance of :class:``. :seealso: - :meth:`byte-storage-offset-address()` - :meth:`byte-storage-offset-address()` - :meth:`byte-storage-offset-address()` - :gf:`byte-storage-address` .. method:: byte-storage-offset-address :specializer: :sealed: :no-contents-entry: Returns the address of the raw byte storage of a :drm:``, with an offset. :seealso: - :gf:`byte-storage-offset-address` .. method:: byte-storage-offset-address :specializer: :sealed: :no-contents-entry: Returns the address of the raw byte storage of a :class:``, with an offset. :seealso: - :gf:`byte-storage-offset-address` .. generic-function:: byte-vector-fill :sealed: Fill a byte vector with a specific byte value. :signature: byte-vector-fill (target value #key start end) => () :parameter target: The byte vector to fill. An instance of :class:``. :parameter value: The value with which to fill *target*. An instance of :drm:``. :parameter start: The index at which to start filling *target*. An instance of :drm:``, default 0. :parameter end: The index before which to stop filling *target*. An instance of :drm:``, default ``target.size``. .. method:: byte-vector-fill :specializer: , :sealed: :no-contents-entry: .. method:: byte-vector-fill :specializer: , :sealed: :no-contents-entry: .. function:: byte-vector-ref :signature: byte-vector-ref (byte-vector index) => (#rest results) :parameter byte-vector: An instance of :const:``. :parameter index: An instance of :drm:``. :value #rest results: An instance of :drm:``. .. function:: byte-vector-ref-setter :signature: byte-vector-ref-setter (value byte-vector index) => (#rest results) :parameter value: An instance of :drm:``. :parameter byte-vector: An instance of :const:``. :parameter index: An instance of :drm:``. :value value: An instance of :drm:``. .. generic-function:: copy-bytes :open: Efficiently copy bytes from one sequence to another. :signature: copy-bytes (dst dst-start src src-start n) => () :parameter dst: The destination sequence. An instance of :drm:``. :parameter dst-start: The start index in ``dst`` at which to store bytes. An instance of :drm:``. :parameter src: The source sequence. An instance of :drm:``. :parameter src-start: The start index in ``src`` at which to read bytes. An instance of :drm:``. :parameter n: The number of bytes to copy. An instance of :drm:``. The available method specializers are: .. method:: copy-bytes :specializer: , , , , :open: :no-contents-entry: .. method:: copy-bytes :specializer: , , , , :open: :no-contents-entry: .. method:: copy-bytes :specializer: , , , , :open: :no-contents-entry: .. method:: copy-bytes :specializer: , , , , :open: :no-contents-entry: .. method:: copy-bytes :specializer: , , , , :open: :no-contents-entry: .. method:: copy-bytes :specializer: , , , , :sealed: :no-contents-entry: .. method:: copy-bytes :specializer: , , , , :sealed: :no-contents-entry: .. method:: copy-bytes :specializer: , , , , :sealed: :no-contents-entry: .. method:: copy-bytes :specializer: , , , , :sealed: :no-contents-entry: .. method:: copy-bytes :specializer: , , , , :sealed: :no-contents-entry: .. method:: copy-bytes :specializer: , , , , :sealed: :no-contents-entry: .. method:: hexstring :specializer: :sealed: Returns a string of lowercase hexadecimal digits representing the data. :signature: hexstring (data) => (result) :parameter data: An instance of :class:``. :value result: An instance of :drm:``. :seealso: - :meth:`from-hexstring()` .. method:: from-hexstring :specializer: :sealed: Returns a :class:`` containing `data` interpreted as a hexadecimal representation of a series of bytes. :signature: from-hexstring (string) => (result) :parameter string: An instance of :drm:``. :value result: An instance of :class:``. :seealso: - :meth:`hexstring()`