Add truncate support to native streams

This commit is contained in:
Robin Appelman 2014-08-03 15:36:59 +02:00
commit 3ae0f3dd0c
2 changed files with 14 additions and 0 deletions

View file

@ -81,4 +81,8 @@ class NativeStream {
public function stream_write($data) {
return $this->state->write($this->handle, $data);
}
public function stream_truncate($size) {
return $this->state->ftruncate($this->handle, $size);
}
}