-
Notifications
You must be signed in to change notification settings - Fork 1
Relative reads
Jacob edited this page Aug 24, 2016
·
2 revisions
method | description | position increment |
---|---|---|
read |
Reads a UInt8
|
1 |
read(t : Int8.class) |
Reads an Int8
|
1 |
read(t : UInt8.class) |
Reads a UInt8 , like read()
|
1 |
read(t : Int16.class) |
Reads an Int16
|
2 |
read(t : UInt16.class) |
Reads a UInt16
|
2 |
read(t : Int32.class) |
Reads an Int32
|
4 |
read(t : UInt32.class) |
Reads a UInt32
|
4 |
read(t : Int64.class) |
Reads an Int64
|
8 |
read(t : UInt64.class) |
Reads a UInt64
|
8 |
read(t : Float32.class) |
Reads a Float32
|
4 |
read(t : Float64.class) |
Reads a Float64
|
8 |
read(slice : Slice(UInt8)) |
Reads into a Slice(UInt8)
|
the size of slice
|
Note: read(slice : Slice(UInt8)) won't be fully read is there's less remaining data on the buffer than the size of slice . The method's return value is the number of bytes that were read. |