WStream

class WStream

Subclasses

FILEWStream

DynamicMemoryWStream

Methods

SizeOfPackedUInt

SizeOfPackedUInt(value: int) -> int

__init__

bytesWritten

bytesWritten(self: skia.WStream) -> int

flush

flush(self: skia.WStream) -> None

newline

newline(self: skia.WStream) -> bool

write

write(self: skia.WStream, buffer: Buffer) -> bool

write16

write16(self: skia.WStream, value: int) -> bool

write32

write32(self: skia.WStream, value: int) -> bool

write8

write8(self: skia.WStream, value: int) -> bool

writeBigDecAsText

writeBigDecAsText(self: skia.WStream, value: int, minDigits: int = 0) -> bool

writeBool

writeBool(*args, **kwargs) Overloaded function.

writeDecAsText

writeDecAsText(self: skia.WStream, value: int) -> bool

writeHexAsText

writeHexAsText(self: skia.WStream, value: int, minDigits: int = 0) -> bool

writePackedUInt

writePackedUInt(self: skia.WStream, value: int) -> bool

writeScalar

writeScalar(self: skia.WStream, value: float) -> bool

writeScalarAsText

writeScalarAsText(self: skia.WStream, value: float) -> bool

writeStream

writeStream(self: skia.WStream, input: skia.Stream, length: int) -> bool

writeText

writeText(self: skia.WStream, text: str) -> bool

Methods

static WStream.SizeOfPackedUInt(value: int) int
WStream.__init__(*args, **kwargs)
WStream.bytesWritten(self: skia.WStream) int
WStream.flush(self: skia.WStream) None

Reimplemented in FILEWStream, and NullWStream.

WStream.newline(self: skia.WStream) bool
WStream.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.

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

Overloaded function.

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

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

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