The byte-storage Module¶
- byte-storage Module¶
- byte-storage-address Open Generic function¶
Returns the address of the raw byte storage of an object.
- Signature:
byte-storage-address (the-buffer) => (result-offset)
- Parameters:
the-buffer – An instance of
<object>.
- Values:
result-offset – An instance of
<machine-word>.
- See also:
byte-storage-offset-address
- byte-storage-address(<byte-string>) Sealed Method¶
Returns the address of the raw byte storage of a
<byte-string>.- See also:
- byte-storage-address(<byte-vector>) Sealed Method¶
Returns the address of the raw byte storage of a
<byte-vector>.- See also:
- with-object-byte-storage Statement Macro¶
Provides the pinned address of the repeated byte storage of an object within the scope of the body of the code.
- Macro Call:
with-object-byte-storage (name = object) body end [with-object-byte-storage]
- Parameters:
name – A Dylan variable name.
object – A Dylan object with repeated byte storage.
- Discussion:
Binds name to the address (a
<machine-word>as returned bybyte-storage-address) of the repeated byte storage portion of an object within the scope of body. The object is pinned by the garbage collector so that the address is valid until body exits.