Skip to content

Commit

Permalink
Update ext-encoding stub
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Apr 2, 2024
1 parent 9f725b8 commit 94a948d
Showing 1 changed file with 38 additions and 29 deletions.
67 changes: 38 additions & 29 deletions encoding/encoding.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,44 @@ final class DataDecodeException extends \RuntimeException{
}

namespace pmmp\encoding {
final class ByteBuffer{
abstract class BaseByteBuffer{

public function __construct(string $buffer = ''){}

public function toString() : string{}

public function readByteArray(int $length) : string{}

public function writeByteArray(string $value) : void{}

public function getReadOffset() : int{}

public function getWriteOffset() : int{}

public function setReadOffset(int $offset) : void{}

public function setWriteOffset(int $offset) : void{}

public function getUsedLength() : int{}

public function getReservedLength() : int{}

public function reserve(int $length) : void{}

public function trim() : void{}

public function clear() : void{}

public function __serialize() : array{}

public function __unserialize(array $data) : void{}

public function __debugInfo() : array{}
}
}

namespace pmmp\encoding {
final class ByteBuffer extends \pmmp\encoding\BaseByteBuffer{

public function readUnsignedByte() : int{}

Expand Down Expand Up @@ -103,34 +140,6 @@ public function readSignedTriadLE() : int{}
public function writeSignedTriadBE(int $value) : void{}

public function writeSignedTriadLE(int $value) : void{}

public function __construct(string $buffer = null){}

public function toString() : string{}

public function readByteArray(int $length) : string{}

public function writeByteArray(string $value) : void{}

public function getOffset() : int{}

public function setOffset(int $offset) : void{}

public function getReserved() : int{}

public function reserve(int $length) : void{}

public function trim() : void{}

public function rewind() : void{}

public function getUnreadLength() : int{}

public function __serialize() : array{}

public function __unserialize(array $data) : void{}

public function __debugInfo() : array{}
}
}

0 comments on commit 94a948d

Please sign in to comment.