Skip to content

Commit 3526ea6

Browse files
committed
added a few more optional methods
1 parent 7126a22 commit 3526ea6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

doc/src/manual/interfaces.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -750,10 +750,14 @@ in one or two dimensional outputs, but produce an `Array` for any other dimensio
750750

751751
| Optional methods | Brief description |
752752
|:----------------------------------------- |:----------------------------------------------------------------------------------------------- |
753-
| `read(io, ::Type{UInt8})` | Read a byte from the stream. |
754-
| `write(io, ::UInt8)` | Write a byte to the stream. |
755-
| `close(io)` | Close the stream. |
756-
| `seek(io, ::Integer)` | Seek to a specific position. |
753+
| `read(io, ::Type{UInt8})` | Read a byte from the stream. |
754+
| `write(io, ::UInt8)` | Write a byte to the stream. |
755+
| `close(io)` | Close the stream. |
756+
| `seek(io, ::Integer)` | Seek to a specific position. |
757+
| `position(io)` | Return the current position of the stream. |
758+
| `seekstart(io)` | Seek to beginning of stream. |
759+
| `seekend(io)` | Seek to the end of the stream. |
760+
757761

758762
To implement an `IO` object it is required to define the low-level methods `unsafe_read`
759763
and `unsafe_write` which enable copying of data between the `IO` and a location given by a

0 commit comments

Comments
 (0)