NullWStream

class NullWStream

Methods

SizeOfPackedUInt

__init__

bytesWritten

flush

Reimplemented in FILEWStream, and NullWStream.

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 NullWStream.SizeOfPackedUInt(value: int) int
NullWStream.__init__(self: skia.NullWStream) None
NullWStream.bytesWritten(self: skia.WStream) int
NullWStream.flush(self: skia.WStream) None

Reimplemented in FILEWStream, and NullWStream.

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

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

Overloaded function.

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

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

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