MCPcopy Create free account
hub / github.com/JLW-7/Wally / binary

Method binary

scripts/Image_Converter/LVGLImage.py:427–438  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

425
426 @property
427 def binary(self) -> bytearray:
428 binary = bytearray()
429 binary += uint8_t(0x19) # magic number for lvgl version 9
430 binary += uint8_t(self.cf.value)
431 binary += uint16_t(self.flags) # 16bits flags
432
433 binary += uint16_t(self.w) # 16bits width
434 binary += uint16_t(self.h) # 16bits height
435 binary += uint16_t(self.stride) # 16bits stride
436
437 binary += uint16_t(0) # 16bits reserved
438 return binary
439
440 def from_binary(self, data: bytes):
441 if len(data) < 12:

Callers

nothing calls this directly

Calls 2

uint8_tFunction · 0.85
uint16_tFunction · 0.85

Tested by

no test coverage detected