This reverts commit 00c31e8766.
This commit is contained in:
parent
f5b4d9a2e5
commit
889b745b2b
11 changed files with 21 additions and 44 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), csize buffer.pos, flags)
|
||||
result = createPacket(cstring(buffer.data), buffer.pos, flags)
|
||||
|
||||
proc isDirty*(buffer: PBuffer): bool {.inline.} =
|
||||
result = (buffer.pos != 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue