Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
1,279 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.develnext.jphp.ext.compress.CompressExtension |
16 changes: 16 additions & 0 deletions
16
jphp-core/src/org/develnext/jphp/core/ext/CompilerExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.develnext.jphp.core.ext; | ||
|
||
import php.runtime.env.CompileScope; | ||
import php.runtime.ext.support.Extension; | ||
|
||
public class CompilerExtension extends Extension { | ||
@Override | ||
public Status getStatus() { | ||
return Status.EXPERIMENTAL; | ||
} | ||
|
||
@Override | ||
public void onRegister(CompileScope scope) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
plugins { | ||
id "com.palantir.graal" version "0.6.0-110-gd6e368f" | ||
} | ||
|
||
dependencies { | ||
compile project(":jphp-runtime") | ||
compile project(":jphp-core") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,265 @@ | ||
# DataStream | ||
|
||
- **class** `DataStream` (`php\io\DataStream`) | ||
- **source** `php/io/DataStream.php` | ||
|
||
**Description** | ||
|
||
Class DataStream | ||
|
||
--- | ||
|
||
#### Methods | ||
|
||
- `->`[`__construct()`](#method-__construct) - _DataStream constructor._ | ||
- `->`[`read()`](#method-read) | ||
- `->`[`write()`](#method-write) | ||
- `->`[`readBool()`](#method-readbool) | ||
- `->`[`readByte()`](#method-readbyte) | ||
- `->`[`readUnsignedByte()`](#method-readunsignedbyte) | ||
- `->`[`readShort()`](#method-readshort) | ||
- `->`[`readUnsignedShort()`](#method-readunsignedshort) | ||
- `->`[`readInt()`](#method-readint) | ||
- `->`[`readLong()`](#method-readlong) | ||
- `->`[`readFloat()`](#method-readfloat) | ||
- `->`[`readDouble()`](#method-readdouble) | ||
- `->`[`readUTF()`](#method-readutf) | ||
- `->`[`readChar()`](#method-readchar) | ||
- `->`[`writeByte()`](#method-writebyte) | ||
- `->`[`writeShort()`](#method-writeshort) | ||
- `->`[`writeInt()`](#method-writeint) | ||
- `->`[`writeLong()`](#method-writelong) | ||
- `->`[`writeFloat()`](#method-writefloat) | ||
- `->`[`writeDouble()`](#method-writedouble) | ||
- `->`[`writeChar()`](#method-writechar) | ||
- `->`[`writeChars()`](#method-writechars) | ||
- `->`[`writeUTF()`](#method-writeutf) | ||
- `->`[`writeBinary()`](#method-writebinary) | ||
- `->`[`writeBool()`](#method-writebool) | ||
|
||
--- | ||
# Methods | ||
|
||
<a name="method-__construct"></a> | ||
|
||
### __construct() | ||
```php | ||
__construct(php\io\Stream $stream): void | ||
``` | ||
DataStream constructor. | ||
|
||
--- | ||
|
||
<a name="method-read"></a> | ||
|
||
### read() | ||
```php | ||
read(): int | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-write"></a> | ||
|
||
### write() | ||
```php | ||
write(int $value): void | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-readbool"></a> | ||
|
||
### readBool() | ||
```php | ||
readBool(): boolean | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-readbyte"></a> | ||
|
||
### readByte() | ||
```php | ||
readByte(): int | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-readunsignedbyte"></a> | ||
|
||
### readUnsignedByte() | ||
```php | ||
readUnsignedByte(): int | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-readshort"></a> | ||
|
||
### readShort() | ||
```php | ||
readShort(): int | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-readunsignedshort"></a> | ||
|
||
### readUnsignedShort() | ||
```php | ||
readUnsignedShort(): int | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-readint"></a> | ||
|
||
### readInt() | ||
```php | ||
readInt(): int | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-readlong"></a> | ||
|
||
### readLong() | ||
```php | ||
readLong(): int | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-readfloat"></a> | ||
|
||
### readFloat() | ||
```php | ||
readFloat(): double | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-readdouble"></a> | ||
|
||
### readDouble() | ||
```php | ||
readDouble(): double | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-readutf"></a> | ||
|
||
### readUTF() | ||
```php | ||
readUTF(): string | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-readchar"></a> | ||
|
||
### readChar() | ||
```php | ||
readChar(): string | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-writebyte"></a> | ||
|
||
### writeByte() | ||
```php | ||
writeByte(int $value): void | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-writeshort"></a> | ||
|
||
### writeShort() | ||
```php | ||
writeShort(int $value): void | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-writeint"></a> | ||
|
||
### writeInt() | ||
```php | ||
writeInt(int $value): void | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-writelong"></a> | ||
|
||
### writeLong() | ||
```php | ||
writeLong(int $value): void | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-writefloat"></a> | ||
|
||
### writeFloat() | ||
```php | ||
writeFloat(double $value): void | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-writedouble"></a> | ||
|
||
### writeDouble() | ||
```php | ||
writeDouble(double $value): void | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-writechar"></a> | ||
|
||
### writeChar() | ||
```php | ||
writeChar(string $value): void | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-writechars"></a> | ||
|
||
### writeChars() | ||
```php | ||
writeChars(string $value): void | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-writeutf"></a> | ||
|
||
### writeUTF() | ||
```php | ||
writeUTF(string $value): void | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-writebinary"></a> | ||
|
||
### writeBinary() | ||
```php | ||
writeBinary(string $value): void | ||
``` | ||
|
||
--- | ||
|
||
<a name="method-writebool"></a> | ||
|
||
### writeBool() | ||
```php | ||
writeBool(boolean $value): void | ||
``` |
Oops, something went wrong.