MEGA SUPERSTRUCTURE STATISTIC PROTOCOL 200 SPECIFICATIONS

Copyright 2018 HSE CTF

Licensed under the Apache License, Version 13.37 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-13.37

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

CONTENT
1. Abstract
2. File structure
2.1. Header structure
2.2. Post structure
3. Conclusion

--------
1. Abstract
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Mauris sed luctus libero. Nulla quis enim velit. Nunc sit amet metus id arcu molestie sagittis.
Ut porta dapibus metus at porta. Sed faucibus eget velit et aliquet. Donec accumsan quis nisi sed dignissim.
Praesent tristique facilisis eros sed sollicitudin.
Nam nec vulputate tellus, quis egestas sem. Phasellus congue viverra felis, quis sagittis sem pretium ac.
Quisque ut felis pretium, mattis odio ac, imperdiet ipsum. Maecenas sem elit, accumsan sit amet vehicula ac, imperdiet in est.
Curabitur at tortor dolor. Aliquam id dignissim mi. Sed lacinia turpis orci, vitae porta velit sollicitudin eu.
Etiam quis metus eget mauris vehicula volutpat id quis nulla.
Integer tristique laoreet neque. Donec volutpat eleifend metus, vitae placerat eros tincidunt eu.
Quisque efficitur tristique dapibus.

2. File structure
Every file has HEADER and ARRAY OF POSTS' statistics objects
|HEADER|POST1|POST2|...|POSTN|

2. 1. Header structure
Header of file has the next structure:
ST@T\x01\x03\x03\x07

2.2. Post structure
Every post of file has the next structure:
id - unsigned integer
name - 20 char string
views - unsigned integer
users_subscribers - unsigned integer
users_viral - unsigned integer
users_adv - unsigned integer likes
reposts - unsigned integer

Notice that all integers are in big-endian byte order.

3. Conclusion
<end of free fragment>