Commit Graph

  • 714151a068 sixbit: add size calculation function Matt Bilker 2018-09-03 21:32:14 -04:00
  • f011a4ffc0 node(extra): hoist Nodes inside Value out of Value Matt Bilker 2018-09-03 00:21:14 -04:00
  • 5c53542e1f node(marshal): tweak debug log messages Matt Bilker 2018-09-03 00:20:27 -04:00
  • 2228886692 de: setup reading attributes part of non-NodeStart nodes Matt Bilker 2018-09-03 00:19:54 -04:00
  • ff14d25951 value: deserialize NodeStart with NodeSeed Matt Bilker 2018-09-03 00:16:45 -04:00
  • 8f5ba2edc7 node: debug display children and value if they are set Matt Bilker 2018-09-03 00:09:25 -04:00
  • d0e712e319 sixbit: move methods into struct Matt Bilker 2018-09-03 00:02:29 -04:00
  • 7ba2293151 value(de): fix deserialization of the Binary type Matt Bilker 2018-08-31 01:04:31 -04:00
  • b3586cbed7 node(extra): use Marshal to marshal nodes from the Deserializer Matt Bilker 2018-08-30 23:19:44 -04:00
  • bfeb3d8559 node(marshal): implement marshal type for marshalling objects from the Deserializer to the Visitor Matt Bilker 2018-08-30 23:19:01 -04:00
  • 09f99c5152 bin: remove ExtraNodes at root level Matt Bilker 2018-08-30 23:17:42 -04:00
  • 1e4067d9bb value(de): implement IntoDeserializer Matt Bilker 2018-08-30 23:17:20 -04:00
  • 222348fe96 node: implement IntoDeserializer Matt Bilker 2018-08-30 23:16:11 -04:00
  • 3b0ba4b462 value: deserialize NodeStart as Node Matt Bilker 2018-08-30 23:09:57 -04:00
  • 4b7c03ad03 bin: test ExtraNodes flattening Matt Bilker 2018-08-28 04:55:40 +00:00
  • f9d8f7a821 value(de): visit_string implemented Matt Bilker 2018-08-28 00:48:17 -04:00
  • b204d3e19e lib: general cleanup and added some convenience methods for Value Matt Bilker 2018-08-28 00:46:26 -04:00
  • d99ff0aef8 encoding_type: ignore invalid characters when deserializing SHIFT_JIS Matt Bilker 2018-08-27 13:37:51 +00:00
  • ccfbaeacba cargo: version 0.8.0 Matt Bilker 2018-08-18 23:22:02 -04:00
  • 9257b9777f de(seq): check if current node has a different identifier if it is not the first element Matt Bilker 2018-08-18 23:21:36 -04:00
  • 9cb0bf4840 lib: export ExtraNodes for external use Matt Bilker 2018-08-18 22:14:43 -04:00
  • f1f59fb3ae value: remove map support, add Node holder Matt Bilker 2018-08-18 22:13:56 -04:00
  • 878194e1fb node: new container object ExtraNodes for storing extra struct nodes Matt Bilker 2018-08-18 22:12:18 -04:00
  • a4a46e812b de: add comment regarding the for loop Matt Bilker 2018-08-18 22:11:20 -04:00
  • 6ba459ec9a node_types: fix uint types for the int_to_from_bytes feature Matt Bilker 2018-08-17 21:37:10 -04:00
  • fe3675ad24 bin: switch deserialization of test data to Node and display changes as hex Matt Bilker 2018-08-17 20:24:24 -04:00
  • c7b695199a byte_buffer: display buffer when writing aligned data Matt Bilker 2018-08-17 20:23:19 -04:00
  • 2b95b790ac node(de): support deserializing NodeStart as additional nodes Matt Bilker 2018-08-17 20:20:21 -04:00
  • ec08a408a3 value: add a method to get the StandardType of a Value Matt Bilker 2018-08-17 20:15:54 -04:00
  • 284dda9606 ser(tuple): separate tuple and sequence processing to handle tuple types Matt Bilker 2018-08-17 19:05:03 -04:00
  • 1b5253112f de(tuple): manual handling of all StandardType variants Matt Bilker 2018-08-16 06:13:27 -04:00
  • 940d148da4 cargo: update rustc-hex Matt Bilker 2018-08-16 06:12:28 -04:00
  • 49e3cbc1b3 node_types: fix issue with latest nightly and int_to_from_bytes Matt Bilker 2018-08-16 06:11:33 -04:00
  • b2929000ab node: new container for kbin nodes with attributes Matt Bilker 2018-08-15 05:20:31 +00:00
  • c7fe349ac5 de(inner_types): start breakout work on type deserialization from Map, Seq, and Structure handling Matt Bilker 2018-08-15 05:18:13 +00:00
  • d93677fb4d de(custom): use u8 to identify StandardType in ValueVisitor Matt Bilker 2018-08-15 05:17:29 +00:00
  • cb7e3ee7e4 value: Time is actually a u32 not i32 Matt Bilker 2018-08-15 05:16:27 +00:00
  • 55e73d3093 value(de): use u8 as StandardType id identification Matt Bilker 2018-08-15 05:15:49 +00:00
  • e19418c490 de(structure): consume Attribute nodes until a Map solution can be done Matt Bilker 2018-08-15 05:14:22 +00:00
  • c85db383e4 reader: make parse_node_type a struct method Matt Bilker 2018-08-15 05:13:39 +00:00
  • 998ed50544 value: new generic kbin representation Matt Bilker 2018-08-09 05:34:14 +00:00
  • 0406ecd644 cargo: version 0.7.0 Matt Bilker 2018-08-09 05:29:50 +00:00
  • d4ad805aeb ser(structure): use write_identifier helper method Matt Bilker 2018-08-09 05:26:19 +00:00
  • 456ba2bcc9 ser(map): override serialize_entry to handle key and value at the same time Matt Bilker 2018-08-09 05:24:46 +00:00
  • 6c1c97acda ip4: make visitor crate visible Matt Bilker 2018-08-09 05:20:45 +00:00
  • 7813d115d4 byte_buffer: borrow from buffer instead of creating Vecs Matt Bilker 2018-07-28 17:39:01 +00:00
  • 6e0d2b4628 node_types: fixed crash when trying to serialize array with zero elemenets Matt Bilker 2018-07-24 03:59:12 +00:00
  • c6ecf9ff8d cargo: version 0.5.1 Matt Bilker 2018-07-23 03:54:20 +00:00
  • 8ac7ed85de de(seq): log message when end of sequence reached Matt Bilker 2018-07-19 15:01:37 +00:00
  • 3ed8d8a9fd de: use Struct instead of Map since they are almost identical Matt Bilker 2018-07-19 15:00:59 +00:00
  • b4422adf97 bin: move hierarchy printing up before printing text xml Matt Bilker 2018-07-19 15:00:05 +00:00
  • d24b7787c3 test: update testing kbin Matt Bilker 2018-07-19 03:23:19 +00:00
  • 42cedb4223 ser: working Map serialization for flattened structs Matt Bilker 2018-07-19 03:22:11 +00:00
  • 8a8de533d5 de(map): fix map deserialization Matt Bilker 2018-07-19 03:17:16 +00:00
  • 563518850e de: fix deserialize_any and support byte arrays Matt Bilker 2018-07-19 03:15:24 +00:00
  • 61dfe62f25 de: cleanup and use Result instead of expect Matt Bilker 2018-07-19 03:14:27 +00:00
  • a539b123d2 bin: add an attribute field and display hierarchy using Printer Matt Bilker 2018-07-19 03:08:04 +00:00
  • e5741ad065 test: add testcases_out.xml from mon's kbinxml Matt Bilker 2018-07-14 17:56:41 -04:00
  • f0125d3866 de: use tracked last node and identifier for more stateful processing Matt Bilker 2018-07-14 17:56:11 -04:00
  • a02923fa47 reader: track last read identifier and node Matt Bilker 2018-07-14 17:55:12 -04:00
  • 12eb07f566 sixbit: remove old code Matt Bilker 2018-07-14 17:54:51 -04:00
  • d83aecefa4 bin: print out the kbin to stdout Matt Bilker 2018-07-11 22:15:40 -04:00
  • b17220d381 node_types: mark special types with count 0 instead of -1 Matt Bilker 2018-07-11 22:15:08 -04:00
  • 3a27319f99 de: migrate to reader Matt Bilker 2018-07-11 22:14:31 -04:00
  • f4e34082bc byte_buffer: use slices instead of Vec Matt Bilker 2018-07-11 22:10:53 -04:00
  • 3df2b1eda1 reader: create a generic reader to reduce code duplication Matt Bilker 2018-07-10 17:04:08 -04:00
  • 9908352300 ser: fix warnings for unused variables in map serialize Matt Bilker 2018-07-10 12:48:04 -04:00
  • aa78f5f8b6 ser: unimplement map serialization, never was properly implemented Matt Bilker 2018-07-10 16:27:16 +00:00
  • 480a4c5cc8 ip4: add custom wrapper type around IPv4 addresses for serde Matt Bilker 2018-07-10 15:58:09 +00:00
  • 68e7da5cf5 ser(custom): serialize custom types with the tuple struct handler Matt Bilker 2018-07-10 15:56:53 +00:00
  • b03f2bb8a0 ser: unimplement unit serialization Matt Bilker 2018-07-10 15:53:36 +00:00
  • 42793c60df ser(structure): only output nodes when the serializer returns a Some(TypeHint) Matt Bilker 2018-07-10 15:52:15 +00:00
  • d51f470eb9 de: support special tuple struct deserialization Matt Bilker 2018-07-10 15:51:16 +00:00
  • 2534d70155 de: support deserialize of Option types Matt Bilker 2018-07-10 15:50:44 +00:00
  • f2d3e8c3c5 de(seq): require size for sequence Matt Bilker 2018-07-10 15:48:28 +00:00
  • 065f5ad8e5 de(structure): fields not checked Matt Bilker 2018-07-10 15:40:40 +00:00
  • ca0285cd64 de: start of deserialization work with serde Matt Bilker 2018-07-09 09:28:15 -04:00
  • a5f54b18d6 ser(structure): make log messages consistent Matt Bilker 2018-07-09 09:27:21 -04:00
  • 44e2f153dc error: take Error type from ser/error.rs Matt Bilker 2018-07-09 09:26:36 -04:00
  • 168c481ac5 ser(structure): separate struct handling to separate class Matt Bilker 2018-07-08 18:43:29 -04:00
  • e0ac75e81f ser(tuple): check types of sub-elements to only permit single sub-type tuples Matt Bilker 2018-07-08 18:42:49 -04:00
  • 0596e03077 lib: supposed to realign the node_buf not the data_buf Matt Bilker 2018-07-08 18:41:05 -04:00
  • 7fab90beb2 error: add error kind for a type mismatch when writing tuples Matt Bilker 2018-07-08 18:40:44 -04:00
  • b2ff5f83fc byte_buffer: rename log messages to the new function names Matt Bilker 2018-07-08 18:39:52 -04:00
  • 1bd9ddcd4e ser: remove old code Matt Bilker 2018-07-08 01:28:37 -04:00
  • ae3e72b04b ser: realign node buf instead of data buf at the end of serialization Matt Bilker 2018-07-08 01:22:17 -04:00
  • 2c1d12ea10 ser: initial Serde Serializer for kbin Matt Bilker 2018-07-08 01:08:56 -04:00
  • d2da2183bc byte_buffer: remove requirement to pass Cursor to ByteBufferWrite Matt Bilker 2018-07-07 17:03:59 -04:00
  • e7b97ca5e2 byte_buffer: split out from lib Matt Bilker 2018-07-07 16:56:59 -04:00
  • 2318382413 lib: ensure index does not go below zero Matt Bilker 2018-06-17 17:27:25 -04:00
  • 4b1541b630 error: generalize header read errors and add header interpret errors Matt Bilker 2018-06-16 02:17:09 -04:00
  • fc0fd717e0 options: EncodingOptions -> Options Matt Bilker 2018-06-12 20:08:34 +00:00
  • 92d2573336 lib: use encoding specified in options Matt Bilker 2018-06-12 20:05:10 +00:00
  • 9d3848eff1 lib: screw whitespace in parsed XML Matt Bilker 2018-06-12 20:04:12 +00:00
  • 7907a1bb91 bin: only output text XML once Matt Bilker 2018-06-12 16:06:09 +00:00
  • e93d789c2a lib: publicly export EncodingType Matt Bilker 2018-06-12 16:05:47 +00:00
  • 220b2d5d84 lib: remove unneeded brackets and change indentation Matt Bilker 2018-06-12 15:55:16 +00:00
  • b1d0fc9b64 options: add an options object for future expandability Matt Bilker 2018-06-12 15:54:12 +00:00
  • c1da9724d0 lib: fully working kbin writing Matt Bilker 2018-06-11 19:49:50 +00:00
  • 8d8df1de0f lib: begin work on encoding Matt Bilker 2018-06-10 23:45:16 +00:00