mirror of
https://github.com/danog/PHPStruct.git
synced 2024-11-26 19:54:38 +01:00
10 lines
481 B
Plaintext
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
|