wp
This commit is contained in:
@@ -2,7 +2,6 @@ package storage
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
bin "gordenko.dev/dima/bin/little"
|
||||
@@ -270,10 +269,10 @@ func finalizePacket(w *bytes.Buffer, checksum uint32) []byte {
|
||||
start := 9 - bin.CountVarSize(bodySize)
|
||||
bin.PutVarSize(packet[start:], bodySize)
|
||||
|
||||
fmt.Printf("checksum: %d\n", checksum)
|
||||
fmt.Printf("bodySize: %d\n", bodySize)
|
||||
//fmt.Printf("checksum: %d\n", checksum)
|
||||
//fmt.Printf("bodySize: %d\n", bodySize)
|
||||
//fmt.Printf("start: %d\n", start)
|
||||
fmt.Printf("body: % x\n", packet[9:len(packet)-4])
|
||||
//fmt.Printf("body: % x\n", packet[9:len(packet)-4])
|
||||
|
||||
return packet[start:]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user