| @@ 202-218 (lines=17) @@ | ||
| 199 | * @param mixed $data |
|
| 200 | * @param string $name |
|
| 201 | */ |
|
| 202 | private static function read(&$raw, &$offset, $data, $name) |
|
| 203 | { |
|
| 204 | $raw = array_merge( |
|
| 205 | $raw, |
|
| 206 | unpack(sprintf("N%sLength", $name), substr($data, $offset)) |
|
| 207 | ); |
|
| 208 | $offset += 4; |
|
| 209 | ||
| 210 | $raw = array_merge( |
|
| 211 | $raw, |
|
| 212 | unpack( |
|
| 213 | sprintf("a%s%s", $raw[sprintf("%sLength", $name)], $name), |
|
| 214 | substr($data, $offset) |
|
| 215 | ) |
|
| 216 | ); |
|
| 217 | $offset += $raw[sprintf("%sLength", $name)]; |
|
| 218 | } |
|
| 219 | ||
| 220 | } |
|
| @@ 213-229 (lines=17) @@ | ||
| 210 | * @param mixed $data |
|
| 211 | * @param string $name |
|
| 212 | */ |
|
| 213 | private static function read(&$raw, &$offset, $data, $name) |
|
| 214 | { |
|
| 215 | $raw = array_merge( |
|
| 216 | $raw, |
|
| 217 | unpack(sprintf("N%sLength", $name), substr($data, $offset)) |
|
| 218 | ); |
|
| 219 | $offset += 4; |
|
| 220 | ||
| 221 | $raw = array_merge( |
|
| 222 | $raw, |
|
| 223 | unpack( |
|
| 224 | sprintf("a%s%s", $raw[sprintf("%sLength", $name)], $name), |
|
| 225 | substr($data, $offset) |
|
| 226 | ) |
|
| 227 | ); |
|
| 228 | $offset += $raw[sprintf("%sLength", $name)]; |
|
| 229 | } |
|
| 230 | } |
|
| @@ 116-132 (lines=17) @@ | ||
| 113 | * @param mixed $data |
|
| 114 | * @param string $name |
|
| 115 | */ |
|
| 116 | private function read(&$raw, &$offset, $data, $name) |
|
| 117 | { |
|
| 118 | $raw = array_merge( |
|
| 119 | $raw, |
|
| 120 | unpack(sprintf("N%sLength", $name), substr($data, $offset)) |
|
| 121 | ); |
|
| 122 | $offset += 4; |
|
| 123 | ||
| 124 | $raw = array_merge( |
|
| 125 | $raw, |
|
| 126 | unpack( |
|
| 127 | sprintf("a%s%s", $raw[sprintf("%sLength", $name)], $name), |
|
| 128 | substr($data, $offset) |
|
| 129 | ) |
|
| 130 | ); |
|
| 131 | $offset += $raw[sprintf("%sLength", $name)]; |
|
| 132 | } |
|
| 133 | ||
| 134 | } |
|
| 135 | ||