| 13 | { |
| 14 | |
| 15 | int baseCount(int format) |
| 16 | { |
| 17 | // LAZ screws with the high bits of the format, so we mask down to the low four bits. |
| 18 | switch (format & Header::FormatMask) |
| 19 | { |
| 20 | case 0: |
| 21 | return 20; |
| 22 | case 1: |
| 23 | return 28; |
| 24 | case 2: |
| 25 | return 26; |
| 26 | case 3: |
| 27 | return 34; |
| 28 | case 6: |
| 29 | return 30; |
| 30 | case 7: |
| 31 | return 36; |
| 32 | case 8: |
| 33 | return 38; |
| 34 | default: |
| 35 | return 0; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | void Header::fill(const char *buf, size_t bufsize) |
| 40 | { |
no outgoing calls
no test coverage detected