| size -> int | The size of the consumed data. |
|---|---|
| write-byte byte/int -> none | Writes the byte into the consumer. |
| put-byte offset/int data/int -> none | Writes the byte of data at the given offset. |
| write data/Data from/int= to/int= -> int | Writes the given data into this consumer. |
| write-producer producer/Producer -> none | Writes the data from the producer into this consumer. |
| grow amount/int -> none | Grows this consumer by amount bytes. |
| reserve amount/int -> none | Reserves amount bytes. |
| close -> none | Closes this buffer. |
| clear -> none | Resets the buffer, discarding all accumulated data. |
| write-int64-big-endian data/int -> none | Writes the 64 bits of data at the end. |
| write-int32-big-endian data/int -> none | Writes the 32 bits of data at the end. |
| write-int16-big-endian data/int -> none | Writes the 16 bits of data at the end. |
| put-int64-big-endian offset/int data/int -> none | Writes the 64 bits of data at the given offset. |
| put-int32-big-endian offset/int data/int -> none | Writes the 32 bits of data at the given offset. |
| put-int16-big-endian offset/int data/int -> none | Writes the 16 bits of data at the given offset. |
| write-int64-little-endian data/int -> none | Writes the 64 bits of data at the end. |
| write-int32-little-endian data/int -> none | Writes the 32 bits of data at the end. |
| write-int16-little-endian data/int -> none | Writes the 16 bits of data at the end. |
| put-int64-little-endian offset/int data/int -> none | Writes the 64 bits of data at the given offset. |
| put-int32-little-endian offset/int data/int -> none | Writes the 32 bits of data at the given offset. |
| put-int16-little-endian offset/int data/int -> none | Writes the 16 bits of data at the given offset. |
| operator == other/any -> bool | Whether this object is equal to the other. |
| stringify -> string | Stringifies this object. |
class Pin:
number/int
constructor .number:
operator == other:
if other is not Pin: return false
return number == other.number
hash-code method. That is, if a class has a hash-code member, then the equality and hash-code must agree. If two instances are equal (a == b), then their hash codes must also be equal (a.hash-code == b.hash-code).