FILEWStream

class FILEWStream

Methods

SizeOfPackedUInt

__init__

bytesWritten

flush

Reimplemented in FILEWStream, and NullWStream.

fsync

isValid

newline

write

Called to write bytes to a WStream.

write16

write32

write8

writeBigDecAsText

writeBool

Overloaded function.

writeDecAsText

writeHexAsText

writePackedUInt

writeScalar

writeScalarAsText

writeStream

writeText

Methods

static FILEWStream.SizeOfPackedUInt(value: int) int
FILEWStream.__init__(self: skia.FILEWStream, path: str) None
FILEWStream.bytesWritten(self: skia.WStream) int
FILEWStream.flush(self: skia.WStream) None

Reimplemented in FILEWStream, and NullWStream.

FILEWStream.fsync(self: skia.FILEWStream) None
FILEWStream.isValid(self: skia.FILEWStream) bool
FILEWStream.newline(self: skia.WStream) bool
FILEWStream.write(self: skia.WStream, buffer: buffer) bool

Called to write bytes to a WStream.

Returns true on success

Parameters:
  • buffer – the address of at least size bytes to be written to the stream

  • size – The number of bytes in buffer to write to the stream

Returns:

true on success

Implemented in DynamicMemoryWStream,

FILEWStream, and NullWStream.

FILEWStream.write16(self: skia.WStream, value: int) bool
FILEWStream.write32(self: skia.WStream, value: int) bool
FILEWStream.write8(self: skia.WStream, value: int) bool
FILEWStream.writeBigDecAsText(self: skia.WStream, value: int, minDigits: int = 0) bool
FILEWStream.writeBool(*args, **kwargs)

Overloaded function.

  1. writeBool(self: skia.WStream, value: bool) -> bool

  2. writeBool(self: skia.WStream, value: bool) -> bool

FILEWStream.writeDecAsText(self: skia.WStream, value: int) bool
FILEWStream.writeHexAsText(self: skia.WStream, value: int, minDigits: int = 0) bool
FILEWStream.writePackedUInt(self: skia.WStream, value: int) bool
FILEWStream.writeScalar(self: skia.WStream, value: float) bool
FILEWStream.writeScalarAsText(self: skia.WStream, value: float) bool
FILEWStream.writeStream(self: skia.WStream, input: skia.Stream, length: int) bool
FILEWStream.writeText(self: skia.WStream, text: str) bool