-
Notifications
You must be signed in to change notification settings - Fork 1
Relative writes
Jacob edited this page Aug 24, 2016
·
2 revisions
The following methods write data into the buffer and advance its position:
method | description | position increment |
---|---|---|
write(value : Int8) |
Writes an Int8
|
1 |
write(value : UInt8) |
Writes a UInt8
|
1 |
write(value : Int16) |
Writes an Int16
|
2 |
write(value : UInt16) |
Writes a UInt16
|
2 |
write(value : Int32) |
Writes an Int32
|
4 |
write(value : UInt32) |
Writes a UInt32
|
4 |
write(value : Int64) |
Writes an Int64
|
8 |
write(value : UInt64) |
Writes a UInt64
|
8 |
write(value : Float32) |
Writes a Float32
|
4 |
write(value : Float64) |
Writes a Float64
|
8 |
write(slice : Slice(UInt8)) |
Writes a Slice(UInt8)
|
the size of the slice |
write(array : Array(UInt8)) |
Writes an Array(UInt8)
|
the size of the array |
write(enumerable : Enumerable(UInt8)) |
Writes an Enumerable(UInt8)
|
the size of the enumerable |
write_bytes(Object) depends on the implementation (if any) of the argument's to_io method. When given another ByteBuffer, all data remaining on that buffer will be written into the receiver. |