Next: , Previous: , Up: FileStream   [Index]


1.79.4 FileStream: buffering

bufferSize

Answer the file’s current buffer

bufferSize: bufSize

Flush the file and set the buffer’s size to bufSize

clean

Synchronize the file descriptor’s state with the object’s state.

fill

Private - Fill the input buffer

flush

Flush the output buffer.

newBuffer

Private - Answer a String to be used as the receiver’s buffer

next: n bufferAll: aCollection startingAt: pos

Private - Assuming that the buffer has space for n characters, store n characters of aCollection in the buffer, starting from the pos-th.

nextAvailable: anInteger into: aCollection startingAt: pos

Read up to anInteger bytes from the stream and store them into aCollection. Return the number of bytes read.

nextAvailable: anInteger putAllOn: aStream

Copy up to anInteger bytes from the stream into aStream. Return the number of bytes read.

pendingWrite

Answer whether the output buffer is full.