Skip to content

Commit

Permalink
Update Protobuf.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Dec 16, 2024
1 parent 782a3b9 commit 3488be2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Support/Protobuf.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Illuminate\Support\Arr;
use Psr\Http\Message\StreamInterface;
use RuntimeException;
use Throwable;
use YOCLIB\Multiformats\Multibase\Multibase;

/**
Expand All @@ -19,6 +20,9 @@
*/
final class Protobuf
{
/**
* @throws Throwable
*/
public static function decode(StreamInterface $stream): array
{
$links = [];
Expand Down Expand Up @@ -75,6 +79,9 @@ private static function decodeBytes(StreamInterface $stream): string
return $stream->read($varint);
}

/**
* @throws Throwable
*/
private static function decodeLink(StreamInterface $stream): array
{
$link = [];
Expand Down

0 comments on commit 3488be2

Please sign in to comment.