2020-10-15 18:42:54 +02:00
|
|
|
---
|
|
|
|
title: danog\MadelineProto\TL\Types\Bytes: Bytes wrapper.
|
|
|
|
description:
|
|
|
|
|
|
|
|
---
|
|
|
|
# `danog\MadelineProto\TL\Types\Bytes`
|
|
|
|
[Back to index](../../../../index.md)
|
|
|
|
|
|
|
|
> Author: Daniil Gentili <daniil@daniil.it>
|
|
|
|
|
|
|
|
|
|
|
|
Bytes wrapper.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Method list:
|
|
|
|
* `jsonSerialize(): array`
|
|
|
|
* `offsetSet(int|null $offset, string $value): void`
|
|
|
|
* `offsetGet(int $offset): string`
|
|
|
|
* `offsetUnset(int $offset): void`
|
|
|
|
* `offsetExists(int $offset): bool`
|
|
|
|
|
|
|
|
## Methods:
|
|
|
|
### `jsonSerialize(): array`
|
|
|
|
|
|
|
|
Obtain values for JSON-encoding.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `offsetSet(int|null $offset, string $value): void`
|
|
|
|
|
|
|
|
Set char at offset.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$offset`: `int|null` Offset
|
|
|
|
* `$value`: `string` Char
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `offsetGet(int $offset): string`
|
|
|
|
|
|
|
|
Get char at offset.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$offset`: `int` Name
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `offsetUnset(int $offset): void`
|
|
|
|
|
|
|
|
Unset char at offset.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$offset`: `int` Offset
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `offsetExists(int $offset): bool`
|
|
|
|
|
|
|
|
Check if char at offset exists.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$offset`: `int` Offset
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|