src/Transactions/Deserializers/DelegateRegistration.php
public function deserialize(): object
    {
        $this->buffer->position($this->assetOffset / 2);

        $usernameLength = $this->buffer->readUInt8();

        $this->transaction->asset = [
            'delegate' => [
                'username' => $this->buffer->position($this->assetOffset + 2)->readHexBytes($usernameLength * 2),
            ],
        ];

        return $this->parseSignatures($this->assetOffset + ($usernameLength + 1) * 2);
    }
public function deserialize(): object
    {
        $this->buffer->position($this->assetOffset / 2);

        $usernameLength = $this->buffer->readUInt8();

        $this->transaction->asset = [
            'delegate' => [
                'username' => $this->buffer->position($this->assetOffset + 2)->readHexBytes($usernameLength * 2),
            ],
        ];

        return $this->parseSignatures($this->assetOffset + ($usernameLength + 1) * 2);
    }
public function deserialize ( ) : object { $ this -> buffer -> position ( $ this -> assetOffset / 2 ) ; $ usernameLength = $ this -> buffer -> readUInt8 ( ) ; $ this -> transaction -> asset = [ 'delegate' => [ 'username' => $ this -> buffer -> position ( $ this -> assetOffset + 2 ) -> readHexBytes ( $ usernameLength * 2 ) , ] , ] ; return $ this -> parseSignatures ( $ this -> assetOffset + ( $ usernameLength + 1 ) * 2 ) ; }
Handle the deserialization of "vote" data.

@return object
Handle the deserialization of vote data .