mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: check (mut f Foo)
syntax
This commit is contained in:
@ -49,7 +49,7 @@ pub fn new_cipher(key []byte) ?Cipher {
|
||||
//
|
||||
// Deprecated: Reset can't guarantee that the key will be entirely removed from
|
||||
// the process's memory.
|
||||
pub fn (c mut Cipher) reset() {
|
||||
pub fn (mut c Cipher) reset() {
|
||||
for i in c.s {
|
||||
c.s[i] = 0
|
||||
}
|
||||
@ -59,7 +59,7 @@ pub fn (c mut Cipher) reset() {
|
||||
|
||||
// xor_key_stream sets dst to the result of XORing src with the key stream.
|
||||
// Dst and src must overlap entirely or not at all.
|
||||
pub fn (c mut Cipher) xor_key_stream(dst mut []byte, src []byte) {
|
||||
pub fn (mut c Cipher) xor_key_stream(dst mut []byte, src []byte) {
|
||||
if src.len == 0 {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user