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

        $voteLength = $this->buffer->readUInt8() & 0xff;

        $this->transaction->asset = ['votes' => []];

        $vote = null;
        for ($i = 0; $i < $voteLength; $i++) {
            $this->buffer->position($this->assetOffset + 2 + $i * 2 * 34);

            $vote = $this->buffer->readHexRaw(34 * 2);
            $vote = ('1' === $vote[1] ? '+' : '-').substr($vote, 2);
            $this->transaction->asset['votes'][] = $vote;
        }

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

        $voteLength = $this->buffer->readUInt8() & 0xff;

        $this->transaction->asset = ['votes' => []];

        $vote = null;
        for ($i = 0; $i < $voteLength; $i++) {
            $this->buffer->position($this->assetOffset + 2 + $i * 2 * 34);

            $vote = $this->buffer->readHexRaw(34 * 2);
            $vote = ('1' === $vote[1] ? '+' : '-').substr($vote, 2);
            $this->transaction->asset['votes'][] = $vote;
        }

        return $this->parseSignatures($this->assetOffset + 2 + $voteLength * 34 * 2);
    }
public function deserialize ( ) : object { $ this -> buffer -> position ( $ this -> assetOffset / 2 ) ; $ voteLength = $ this -> buffer -> readUInt8 ( ) & 0xff ; $ this -> transaction -> asset = [ 'votes' => [ ] ] ; $ vote = null ; for ( $ i = 0 ; $ i < $ voteLength ; $ i ++ ) { $ this -> buffer -> position ( $ this -> assetOffset + 2 + $ i * 2 * 34 ) ; $ vote = $ this -> buffer -> readHexRaw ( 34 * 2 ) ; $ vote = ( '1' === $ vote [ 1 ] ? '+' : '-' ) . substr ( $ vote , 2 ) ; $ this -> transaction -> asset [ 'votes' ] [ ] = $ vote ; } return $ this -> parseSignatures ( $ this -> assetOffset + 2 + $ voteLength * 34 * 2 ) ; }
Handle the deserialization of "second signature registration" data.

@return object
Handle the deserialization of second signature registration data .