1
0
mirror of https://github.com/danog/PHPStruct.git synced 2024-11-26 19:54:38 +01:00
PHPStruct/think
danogentili 49a0fdebaa Update
2016-07-06 23:36:35 +02:00

10 lines
481 B
Plaintext

pack("foxrmat", "f", "o", "r", "m", "a", "t")
check if the number of format chars matches the number of the parameters (ignore x),
check if each format char (except x) has its own param with the correct length
done in parse: check unknown formats
done in func: check if length generated from calcsize is the length of generated data
unpack("foxrmat", $unpack)
done in parse: check unknown formats
done in func: check if length generated from calcsize is the length of given data