Update 'Interfaces'
parent
6a7b19769f
commit
a2d2f2a027
15
Interfaces.md
Normal file
15
Interfaces.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Interfaces in ARF are like interfaces in Go, that is to say, their methods are
|
||||||
|
defined and any object that has at least those methods can fulfill that
|
||||||
|
interface.
|
||||||
|
|
||||||
|
They are defined like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
face ro ReadWriter
|
||||||
|
read
|
||||||
|
> into:{Byte ..}
|
||||||
|
< amountRead:Size
|
||||||
|
write
|
||||||
|
> buffer{Byte ..}
|
||||||
|
< amountWrote:Size
|
||||||
|
```
|
Reference in New Issue
Block a user