1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: change f mut Foo to mut f Foo

This commit is contained in:
yuyi
2020-06-04 16:35:40 +08:00
committed by GitHub
parent 0b7fe0a9d0
commit 5ae8853648
36 changed files with 62 additions and 65 deletions

View File

@ -10,7 +10,7 @@ pub fn little_endian_u16(b []byte) u16 {
}
[inline]
pub fn little_endian_put_u16(b mut []byte, v u16) {
pub fn little_endian_put_u16(mut b []byte, v u16) {
_ = b[1] // bounds check
b[0] = byte(v)
b[1] = byte(v>>u16(8))
@ -23,7 +23,7 @@ pub fn little_endian_u32(b []byte) u32 {
}
[inline]
pub fn little_endian_put_u32(b mut []byte, v u32) {
pub fn little_endian_put_u32(mut b []byte, v u32) {
_ = b[3] // bounds check
b[0] = byte(v)
b[1] = byte(v>>u32(8))
@ -38,7 +38,7 @@ pub fn little_endian_u64(b []byte) u64 {
}
[inline]
pub fn little_endian_put_u64(b mut []byte, v u64) {
pub fn little_endian_put_u64(mut b []byte, v u64) {
_ = b[7] // bounds check
b[0] = byte(v)
b[1] = byte(v>>u64(8))
@ -58,7 +58,7 @@ pub fn big_endian_u16(b []byte) u16 {
}
[inline]
pub fn big_endian_put_u16(b mut []byte, v u16) {
pub fn big_endian_put_u16(mut b []byte, v u16) {
_ = b[1] // bounds check
b[0] = byte(v>>u16(8))
b[1] = byte(v)
@ -71,7 +71,7 @@ pub fn big_endian_u32(b []byte) u32 {
}
[inline]
pub fn big_endian_put_u32(b mut []byte, v u32) {
pub fn big_endian_put_u32(mut b []byte, v u32) {
_ = b[3] // bounds check
b[0] = byte(v>>u32(24))
b[1] = byte(v>>u32(16))
@ -86,7 +86,7 @@ pub fn big_endian_u64(b []byte) u64 {
}
[inline]
pub fn big_endian_put_u64(b mut []byte, v u64) {
pub fn big_endian_put_u64(mut b []byte, v u64) {
_ = b[7] // bounds check
b[0] = byte(v>>u64(56))
b[1] = byte(v>>u64(48))
@ -97,4 +97,3 @@ pub fn big_endian_put_u64(b mut []byte, v u64) {
b[6] = byte(v>>u64(8))
b[7] = byte(v)
}