Import std.io.binary
BinaryWriter
class
Public Class BinaryWriter
Writes numbers, Bools, bytes, and text to another Writer.
Examples
Local memory = MemoryStream()
Local writer = BinaryWriter(memory)
Try writer.WriteInt32(-2)
Try writer.WriteBool(True)
Expect(memory.ToArray() == [0xFE, 0xFF, 0xFF, 0xFF, 0x01] As UInt8[])-
Writes
inner, its numbers' bytes inorder. -
Writes
value, a byte. -
Writes
value, a byte. -
Writes
value, in its ByteOrder. -
Writes
value, in its ByteOrder. -
Writes
value, in its ByteOrder. -
Writes
value, in its ByteOrder. -
Writes
value, in its ByteOrder. -
Writes
value, in its ByteOrder. -
Writes
value, its bits in its ByteOrder. -
Writes
value, its bits in its ByteOrder. -
A byte: 1 for True, and 0 for False.
-
Writes
bytesas they are. -
The
text's UTF-8 bytes, without anything to say how many there are.
Report an issue with this page or with FutureBlitz on GitHub.