MCPcopy Create free account
hub / github.com/C3RV1/UndertaleNDS / write_string_array

Method write_string_array

tools/binary.py:415–418  ·  view source on GitHub ↗
(self, array: List[AnyStr], size: Optional[int] = None,
                           encoding: Optional[str] = "shift_jis", pad: Optional[str] = b"\0")

Source from the content-addressed store, hash-verified

413 self.write_struct(f"{len(array)}d", *array)
414
415 def write_string_array(self, array: List[AnyStr], size: Optional[int] = None,
416 encoding: Optional[str] = "shift_jis", pad: Optional[str] = b"\0"):
417 for string in array:
418 self.write_string(string, size, encoding, pad)
419
420 def write_int24_array(self, array: List[int]):
421 for x in array:

Callers

nothing calls this directly

Calls 1

write_stringMethod · 0.95

Tested by

no test coverage detected