class-bytewritestream.php
2 weeks ago
class-filewritestream.php
2 weeks ago
class-transformedwritestream.php
2 weeks ago
class-bytewritestream.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WordPress\ByteStream\WriteStream; |
| 4 | |
| 5 | interface ByteWriteStream { |
| 6 | |
| 7 | /** |
| 8 | * Append bytes to the stream. |
| 9 | * |
| 10 | * @param string $bytes |
| 11 | * |
| 12 | * @return void |
| 13 | */ |
| 14 | public function append_bytes( string $bytes ): void; |
| 15 | |
| 16 | /** |
| 17 | * Closes the stream resources. |
| 18 | * |
| 19 | * @return void |
| 20 | */ |
| 21 | public function close_writing(): void; |
| 22 | } |
| 23 |