Skip to content

Conversation

nikic
Copy link
Member

@nikic nikic commented Oct 6, 2020

No description provided.

* @prefer-ref $from
*/
public static function memcpy(FFI\CData $dst, $src, int $size): void {}
public static function memcpy(FFI\CData $to, $from, int $size): void {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using $from/$to with memcpy feels a bit odd to me, but it's not too bad...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with either :)

Copy link
Member

@kocsismate kocsismate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! As I'm not familiar with this extension, I had to think out-loud a little bit.

* @prefer-ref $from
*/
public static function memcpy(FFI\CData $dst, $src, int $size): void {}
public static function memcpy(FFI\CData $to, $from, int $size): void {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with either :)

@php-pulls php-pulls closed this in 22ab18c Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants