ignore this
nothing happened
This commit is contained in:
parent
a6c96ef0b5
commit
550ab0e2ff
1 changed files with 12 additions and 1 deletions
|
@ -20,8 +20,19 @@ namespace Kneesocks {
|
|||
public bool IsMasked { get; set; }
|
||||
public byte[] Mask { get; set; }
|
||||
public byte Reserved { get; set; }
|
||||
|
||||
public byte[] Content { get; set; }
|
||||
public byte[] MaskedContent {
|
||||
get {
|
||||
byte[] ret = new byte[Content.Length];
|
||||
for(var i = 0; i < Content.Length; ++i)
|
||||
ret[i] = (byte)(Content[i] ^ Mask[i % 4]);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public static FromRaw(byte[] raw) {
|
||||
|
||||
public byte[] Content { get; private set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue