(d: str, schema_name: str)
| 27 | |
| 28 | |
| 29 | def write_schema(d: str, schema_name: str) -> None: |
| 30 | schema_path = os.path.join(d, "{}.fbs".format(schema_name)) |
| 31 | with open(schema_path, "wb") as schema_file: |
| 32 | schema_file.write( |
| 33 | _resources.read_binary(serialization_package, f"{schema_name}.fbs") |
| 34 | ) |
| 35 | |
| 36 | |
| 37 | def serialize_from_bundled_program_to_json( |
no test coverage detected