Skip to content

Commit

Permalink
- upd length map
Browse files Browse the repository at this point in the history
  • Loading branch information
t3ran13 committed Oct 21, 2020
1 parent 1cbc758 commit f27b78b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/t3ran13/ByteBuffer/ByteBuffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function writeInt64LE($value, $offset = null) {
}

public function read($offset, $length) {
$format = 'a' . $length;
$format = $length;
return $this->extract($format, $offset, $length);
}

Expand Down
4 changes: 3 additions & 1 deletion src/t3ran13/ByteBuffer/LengthMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public function __construct() {
'v' => 2,
'V' => 4,
'c' => 1,
'C' => 1
'C' => 1,
'J' => 8,
'P' => 8
);
}

Expand Down

0 comments on commit f27b78b

Please sign in to comment.