public function PhpStreamWrapperInterface::stream_truncate in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php \Drupal\Core\StreamWrapper\PhpStreamWrapperInterface::stream_truncate()
- 9 core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php \Drupal\Core\StreamWrapper\PhpStreamWrapperInterface::stream_truncate()
Truncate stream.
Will respond to truncation; e.g., through ftruncate().
Parameters
int $new_size: The new size.
Return value
bool TRUE on success, FALSE otherwise.
See also
http://php.net/manual/en/streamwrapper.stream-truncate.php
File
- core/
lib/ Drupal/ Core/ StreamWrapper/ PhpStreamWrapperInterface.php, line 451
Class
- PhpStreamWrapperInterface
- Defines a generic PHP stream wrapper interface.
Namespace
Drupal\Core\StreamWrapperCode
public function stream_truncate($new_size);