no message

This commit is contained in:
Peter
2017-01-05 01:14:32 +04:00
parent 8fdd767461
commit 84c0a86d8f
24 changed files with 686 additions and 114 deletions

View File

@@ -31,7 +31,7 @@ private final class PeerNameIndexCategoriesEntry {
let tokenCount = buffer.memory.load(fromByteOffset: 4, as: Int32.self)
var offset = 8
var tokens: [ValueBoxKey] = []
for i in 0 ..< tokenCount {
for _ in 0 ..< tokenCount {
let length = buffer.memory.load(fromByteOffset: offset, as: Int32.self)
offset += 4
tokens.append(ValueBoxKey(MemoryBuffer(memory: buffer.memory.advanced(by: offset), capacity: Int(length), length: Int(length), freeWhenDone: false)))