Binary
| Description: | Represents binary data |
| Annotation: | binary |
| Literal Syntax: | 0x[ffffffff] - hex-based binary representation |
0o[1234567] - octal-based binary representation |
|
0b[10101010101] - binary-based binary representation |
|
| Casts: | into binary |
| See also: | Types of data - Binary |
Additional Language Notes
-
Incomplete bytes are left-padded with zeros.
-
Spaces can be used to improve readability. For example,
0x[ffff ffff].
Common commands that can be used with binary
into binarybitssubcommands (seehelp bitsfor a list)bytessubcommands (seehelp bytesfor a list)encodetakechunksto split binary into individual bytes or groups
Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.