Skip to content

Commit

Permalink
Added stub for ext-encoding 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Oct 27, 2023
1 parent 670efa9 commit 436aba2
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 119 deletions.
4 changes: 2 additions & 2 deletions PhpStormStubsMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ final class PhpStormStubsMap
'BadFunctionCallException' => 'SPL/SPL.php',
'BadMethodCallException' => 'SPL/SPL.php',
'BlackfireProbe' => 'blackfire/blackfire.php',
'ByteBuffer' => 'encoding/encoding.php',
'COM' => 'com_dotnet/com_dotnet.php',
'CURLFile' => 'curl/curl.php',
'CURLStringFile' => 'curl/CURLStringFile.php',
Expand Down Expand Up @@ -418,7 +417,6 @@ final class PhpStormStubsMap
'DOMUserDataHandler' => 'dom/dom_c.php',
'DOMXPath' => 'dom/dom_c.php',
'DOTNET' => 'com_dotnet/com_dotnet.php',
'DataDecodeException' => 'encoding/encoding.php',
'DateInterval' => 'date/date_c.php',
'DatePeriod' => 'date/date_c.php',
'DateTime' => 'date/date_c.php',
Expand Down Expand Up @@ -1307,6 +1305,8 @@ final class PhpStormStubsMap
'parallel\\Sync\\Error' => 'parallel/parallel/Sync/Error.php',
'parallel\\Sync\\Error\\IllegalValue' => 'parallel/parallel/Sync/Error/IllegalValue.php',
'php_user_filter' => 'standard/standard_0.php',
'pmmp\\encoding\\ByteBuffer' => 'encoding/encoding.php',
'pmmp\\encoding\\DataDecodeException' => 'encoding/encoding.php',
'pmmp\\thread\\ConnectionException' => 'pmmpthread/ConnectionException.stub.php',
'pmmp\\thread\\Pool' => 'pmmpthread/Pool.stub.php',
'pmmp\\thread\\Runnable' => 'pmmpthread/Runnable.stub.php',
Expand Down
247 changes: 130 additions & 117 deletions encoding/encoding.php
Original file line number Diff line number Diff line change
@@ -1,121 +1,134 @@
<?php

final class DataDecodeException extends \RuntimeException{
namespace pmmp\encoding {
final class DataDecodeException extends \RuntimeException{
}
}

namespace pmmp\encoding {
final class ByteBuffer{

public function readUnsignedByte() : int{}

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

public function readSignedByte() : int{}

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

public function readUnsignedShortLE() : int{}

public function readUnsignedShortBE() : int{}

public function readSignedShortLE() : int{}

public function readSignedShortBE() : int{}

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

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

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

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

public function readUnsignedIntLE() : int{}

public function readUnsignedIntBE() : int{}

public function readSignedIntLE() : int{}

public function readSignedIntBE() : int{}

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

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

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

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

public function readSignedLongLE() : int{}

public function readSignedLongBE() : int{}

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

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

public function readFloatLE() : float{}

public function readFloatBE() : float{}

public function writeFloatLE(float $value) : void{}

public function writeFloatBE(float $value) : void{}

public function readDoubleLE() : float{}

public function readDoubleBE() : float{}

public function writeDoubleLE(float $value) : void{}

public function writeDoubleBE(float $value) : void{}

public function readUnsignedVarInt() : int{}

public function readSignedVarInt() : int{}

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

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

public function readUnsignedVarLong() : int{}

public function readSignedVarLong() : int{}

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

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

public function readUnsignedTriadBE() : int{}

public function readUnsignedTriadLE() : int{}

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

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

public function readSignedTriadBE() : int{}

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 __serialize() : array{}

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

public function __debugInfo() : array{}
}
}

final class ByteBuffer{

public function readUnsignedByte(?int &$offset = null) : int{}

public function writeUnsignedByte(int $value, ?int &$offset = null) : void{}

public function readSignedByte(?int &$offset = null) : int{}

public function writeSignedByte(int $value, ?int &$offset = null) : void{}

public function readUnsignedShortLE(?int &$offset = null) : int{}

public function readUnsignedShortBE(?int &$offset = null) : int{}

public function readSignedShortLE(?int &$offset = null) : int{}

public function readSignedShortBE(?int &$offset = null) : int{}

public function writeUnsignedShortLE(int $value, ?int &$offset = null) : void{}

public function writeUnsignedShortBE(int $value, ?int &$offset = null) : void{}

public function writeSignedShortLE(int $value, ?int &$offset = null) : void{}

public function writeSignedShortBE(int $value, ?int &$offset = null) : void{}

public function readUnsignedIntLE(?int &$offset = null) : int{}

public function readUnsignedIntBE(?int &$offset = null) : int{}

public function readSignedIntLE(?int &$offset = null) : int{}

public function readSignedIntBE(?int &$offset = null) : int{}

public function writeUnsignedIntLE(int $value, ?int &$offset = null) : void{}

public function writeUnsignedIntBE(int $value, ?int &$offset = null) : void{}

public function writeSignedIntLE(int $value, ?int &$offset = null) : void{}

public function writeSignedIntBE(int $value, ?int &$offset = null) : void{}

public function readUnsignedLongLE(?int &$offset = null) : int{}

public function readUnsignedLongBE(?int &$offset = null) : int{}

public function readSignedLongLE(?int &$offset = null) : int{}

public function readSignedLongBE(?int &$offset = null) : int{}

public function writeUnsignedLongLE(int $value, ?int &$offset = null) : void{}

public function writeUnsignedLongBE(int $value, ?int &$offset = null) : void{}

public function writeSignedLongLE(int $value, ?int &$offset = null) : void{}

public function writeSignedLongBE(int $value, ?int &$offset = null) : void{}

public function readFloatLE(?int &$offset = null) : float{}

public function readFloatBE(?int &$offset = null) : float{}

public function writeFloatLE(float $value, ?int &$offset = null) : void{}

public function writeFloatBE(float $value, ?int &$offset = null) : void{}

public function readDoubleLE(?int &$offset = null) : float{}

public function readDoubleBE(?int &$offset = null) : float{}

public function writeDoubleLE(float $value, ?int &$offset = null) : void{}

public function writeDoubleBE(float $value, ?int &$offset = null) : void{}

public function readUnsignedVarInt(?int &$offset = null) : int{}

public function readSignedVarInt(?int &$offset = null) : int{}

public function writeUnsignedVarInt(int $value, ?int &$offset = null) : void{}

public function writeSignedVarInt(int $value, ?int &$offset = null) : void{}

public function readUnsignedVarLong(?int &$offset = null) : int{}

public function readSignedVarLong(?int &$offset = null) : int{}

public function writeUnsignedVarLong(int $value, ?int &$offset = null) : void{}

public function writeSignedVarLong(int $value, ?int &$offset = null) : void{}

public function __construct(string $buffer){}

public function toString() : string{}

public function readByteArray(int $length, ?int &$offset = null) : string{}

public function writeByteArray(string $value, ?int &$offset = null) : 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 __serialize() : array{}

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

public function __debugInfo() : array{}
}

0 comments on commit 436aba2

Please sign in to comment.