Handbook
Glossary
byte-array
Factor handbook
»
The language
»
Collections
»
Byte arrays
Next:
byte-array? ( object -- ? )
Vocabulary
byte-arrays
Class description
The class of byte arrays. See
Byte array syntax
for syntax and
Byte arrays
for general information.
Definition
USING:
sequences.private
;
IN:
byte-arrays
BUILTIN:
byte-array
{
length
array-capacity
read-only
initial:
0
}
;
Methods
USING:
byte-arrays
core-foundation.data
core-foundation.utilities
;
M:
byte-array
(>cf)
<CFData>
;
USING:
byte-arrays
kernel
yaml.private
;
M:
byte-array
(deref-aliases)
nip
;
USING:
byte-arrays
kernel
yaml.private
;
M:
byte-array
(replace-aliases)
nip
;
USING:
byte-arrays
kernel
yaml.private
;
M:
byte-array
(replace-anchors)
nip
;
USING:
byte-arrays
io
kernel
sequences
serialize
serialize.private
;
M:
byte-array
(serialize)
[
65
write1
[
add-object
]
[
length
serialize-cell
]
[
write
]
tri
]
serialize-shared
;
USING:
bencode
byte-arrays
sequences
;
M:
byte-array
>bencode
""
like
>bencode
;
USING:
byte-arrays
kernel
python
python.errors
python.ffi
sequences
;
M:
byte-array
>py
dup
length
PyBytes_FromStringAndSize
check-new-ref
;
USING:
byte-arrays
kernel
yaml.private
;
M:
byte-array
apply-merge-keys
nip
;
USING:
bencode
byte-arrays
io.encodings.binary
io.streams.byte-array
;
M:
byte-array
bencode>
binary
[
read-bencode
]
with-byte-reader
;
USING:
byte-arrays
opencl.private
;
M:
byte-array
bind-kernel-arg
bind-kernel-arg-data
;
USING:
byte-arrays
math.bitwise
math.bitwise.private
;
M:
byte-array
bit-count
byte-array-bit-count
;
USING:
byte-arrays
html.templates
io
;
M:
byte-array
call-template*
write
;
USING:
byte-arrays
cbor
io.encodings.binary
io.streams.byte-array
;
M:
byte-array
cbor>
binary
[
read-cbor
]
with-byte-reader
;
USING:
byte-arrays
kernel
;
M:
byte-array
clone
(clone)
;
inline
USING:
byte-arrays
generic
kernel
sequences
;
M:
byte-array
clone-like
over
byte-array?
[
drop
clone
]
[
M\
byte-array
clone-like
(call-next-method)
]
if
;
inline
USING:
alien.c-types
alien.data
byte-arrays
kernel
specialized-arrays.private
;
M:
byte-array
direct-like
drop
uchar
<c-direct-array>
;
inline
USING:
alien
alien.data
arrays
byte-arrays
destructors
kernel
libc
math
sequences
tools.disassembler
;
M:
byte-array
disassemble
[
[
malloc-byte-array
&free
alien-address
dup
]
[
length
+
]
bi
2array
disassemble
]
with-destructors
;
USING:
byte-arrays
drunken-bishop
drunken-bishop.private
io
kernel
namespaces
sequences
strings
;
M:
byte-array
drunken-bishop.
board-width
get
45
<string>
"+"
"+"
surround
[
print
drunken-bishop
[
SYMBOLS
nths
"|"
"|"
surround
print
]
each
]
[
print
]
bi
;
USING:
alien
byte-arrays
kernel
;
M:
byte-array
element-size
drop
1
;
inline
USING:
byte-arrays
yaml.private
;
M:
byte-array
emit-value
emit-scalar
;
USING:
byte-arrays
kernel
sequences
;
M:
byte-array
equal?
over
byte-array?
[
sequence=
]
[
2drop
f
]
if
;
USING:
byte-arrays
kernel
math
sequences
;
M:
byte-array
hashcode*
[
sequence-hashcode
]
recursive-hashcode
;
USING:
byte-arrays
tools.hexdump
tools.hexdump.private
;
M:
byte-array
hexdump.
all-bytes
hexdump-bytes
;
USING:
accessors
byte-arrays
sequences
;
M:
byte-array
length
length>>
;
inline
USING:
accessors
byte-arrays
byte-vectors
kernel
sequences
;
M:
byte-array
like
drop
dup
byte-array?
[
dup
byte-vector?
[
[
length
]
[
underlying>>
]
bi
2dup
length
eq?
[
nip
]
[
resize-byte-array
]
if
]
[
>byte-array
]
if
]
unless
;
inline
USING:
byte-arrays
images.loader
io.encodings.binary
io.streams.byte-array
kernel
;
M:
byte-array
load-image*
[
binary
<byte-reader>
]
dip
stream>image
;
USING:
byte-arrays
game.models.loader
io.streams.byte-array
kernel
;
M:
byte-array
load-models*
[
<byte-reader>
]
dip
stream>models
;
USING:
byte-arrays
io.encodings.binary
io.streams.byte-array
msgpack
;
M:
byte-array
msgpack>
binary
[
read-msgpack
]
with-byte-reader
;
USING:
byte-arrays
byte-vectors
kernel
sequences
;
M:
byte-array
new-resizable
drop
<byte-vector>
;
inline
USING:
byte-arrays
kernel
sequences
;
M:
byte-array
new-sequence
drop
(byte-array)
;
inline
USING:
alien
byte-arrays
specialized-arrays.private
;
M:
byte-array
nth-c-ptr
<displaced-alien>
;
inline
USING:
alien.accessors
byte-arrays
kernel
math
sequences.private
;
M:
byte-array
nth-unsafe
swap
integer>fixnum
alien-unsigned-1
;
inline
USING:
byte-arrays
syndication
xml
xml.entities.html
;
M:
byte-array
parse-feed
[
bytes>xml
xml>feed
]
with-html-entities
;
USING:
byte-arrays
kernel
prettyprint.custom
;
M:
byte-array
pprint-delims
drop
\
B{
\
}
;
USING:
bootstrap.image.private
byte-arrays
kernel
layouts
sequences
;
M:
byte-array
prepare-object
[
byte-array
[
dup
length
emit-fixnum
bootstrap-cell
4
=
[
0
emit
0
emit
]
when
pad-bytes
emit-bytes
]
emit-object
]
cache-eq-object
;
USING:
base64
byte-arrays
sequences
yaml.conversion
;
M:
byte-array
represent-scalar
>base64
""
like
;
USING:
byte-arrays
sequences.private
;
M:
byte-array
resize
resize-byte-array
;
inline
USING:
alien.accessors
byte-arrays
kernel
math
sequences.private
;
M:
byte-array
set-nth-unsafe
swap
integer>fixnum
set-alien-unsigned-1
;
inline
USING:
byte-arrays
math.parser
sequences
smalltalk.printer
splitting
;
M:
byte-array
smalltalk>string
[
number>string
]
{
}
map-as
join-words
"#["
"]"
surround
;
USING:
alien.strings
byte-arrays
io.encodings.utf8
;
M:
byte-array
symbol>string
utf8
alien>string
;
USING:
accessors
byte-arrays
db.queries
db.types
kernel
nmake
;
M:
byte-array
where
over
column-name>>
0%
" = "
0%
bind#
;
USING:
byte-arrays
cbor
cbor.private
io
kernel
sequences
;
M:
byte-array
write-cbor
dup
length
2
write-integer
write
;
USING:
byte-arrays
combinators
endian
io
kernel
math
msgpack
sequences
;
M:
byte-array
write-msgpack
dup
length
{
{
[
dup
255
<=
]
[
196
write1
write1
]
}
{
[
dup
65535
<=
]
[
197
write1
2
>be
write
]
}
{
[
dup
4294967295
<=
]
[
198
write1
4
>be
write
]
}
[
cannot-convert
]
}
cond
write
;
USING:
byte-arrays
kernel
yaml.conversion
;
M:
byte-array
yaml-tag
drop
YAML_BINARY_TAG
;