You are here

protected function AmazonS3StreamWrapper::clearBuffer in AmazonS3 7

Flush the object buffers.

3 calls to AmazonS3StreamWrapper::clearBuffer()
AmazonS3StreamWrapper::stream_close in ./AmazonS3StreamWrapper.inc
Support for fclose().
AmazonS3StreamWrapper::stream_flush in ./AmazonS3StreamWrapper.inc
Support for fflush(). Flush current cached stream data to storage.
AmazonS3StreamWrapper::stream_open in ./AmazonS3StreamWrapper.inc
Support for fopen(), file_get_contents(), file_put_contents() etc.

File

./AmazonS3StreamWrapper.inc, line 1065
Drupal stream wrapper implementation for Amazon S3

Class

AmazonS3StreamWrapper
@file Drupal stream wrapper implementation for Amazon S3

Code

protected function clearBuffer() {
  $this->position = 0;
  $this->objectSize = 0;
  $this->buffer = NULL;
  $this->bufferWrite = FALSE;
  $this->bufferLength = 0;
}