* Fixes #12187 * Point to fork of compactdict Since the original repo is now archived / read-only
This commit is contained in:
parent
edb24b7ce0
commit
00c31e8766
11 changed files with 44 additions and 21 deletions
|
|
@ -26,7 +26,7 @@ proc newBuffer*(pkt: PPacket): PBuffer =
|
|||
copyMem(addr result.data[0], pkt.data, pkt.dataLength)
|
||||
proc toPacket*(buffer: PBuffer; flags: TPacketFlag): PPacket =
|
||||
buffer.data.setLen buffer.pos
|
||||
result = createPacket(cstring(buffer.data), buffer.pos, flags)
|
||||
result = createPacket(cstring(buffer.data), csize buffer.pos, flags)
|
||||
|
||||
proc isDirty*(buffer: PBuffer): bool {.inline.} =
|
||||
result = (buffer.pos != 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue