List<int> write(Geometry g) { List<int> bout = []; writeToList(g, bout); return Uint8List.fromList(bout); }