FILEWStream
- class FILEWStream
Methods
SizeOfPackedUInt(value: int) -> int
__init__(self: skia.FILEWStream, path: str) -> None
bytesWritten(self: skia.WStream) -> int
flush(self: skia.WStream) -> None
fsync(self: skia.FILEWStream) -> None
isValid(self: skia.FILEWStream) -> bool
newline(self: skia.WStream) -> bool
write(self: skia.WStream, buffer: Buffer) -> bool
write16(self: skia.WStream, value: int) -> bool
write32(self: skia.WStream, value: int) -> bool
write8(self: skia.WStream, value: int) -> bool
writeBigDecAsText(self: skia.WStream, value: int, minDigits: int = 0) -> bool
writeDecAsText(self: skia.WStream, value: int) -> bool
writeHexAsText(self: skia.WStream, value: int, minDigits: int = 0) -> bool
writePackedUInt(self: skia.WStream, value: int) -> bool
writeScalar(self: skia.WStream, value: float) -> bool
writeScalarAsText(self: skia.WStream, value: float) -> bool
writeStream(self: skia.WStream, input: skia.Stream, length: int) -> bool
writeText(self: skia.WStream, text: str) -> bool
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
, andNullWStream
.
- 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
, andNullWStream
.
- 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.
writeBool(self: skia.WStream, value: bool) -> bool
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