OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new repo
[bytom/vapor.git]
/
vendor
/
github.com
/
gorilla
/
websocket
/
mask_safe.go
1
// Copyright 2016 The Gorilla WebSocket Authors. All rights reserved. Use of
2
// this source code is governed by a BSD-style license that can be found in the
3
// LICENSE file.
4
5
// +build appengine
6
7
package websocket
8
9
func maskBytes(key [4]byte, pos int, b []byte) int {
10
for i := range b {
11
b[i] ^= key[pos&3]
12
pos++
13
}
14
return pos & 3
15
}