summaryrefslogtreecommitdiff
path: root/vendor/github.com/jackc/pgio/write.go
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2022-04-26 20:30:25 -0700
committerLibravatar Terin Stock <terinjokes@gmail.com>2023-01-31 15:16:42 +0100
commit83b4c9ebc87d0fddf4e638f13e3af1483912e3a5 (patch)
tree47840b84c0fd3cb226eab2ecb3dbce0617163406 /vendor/github.com/jackc/pgio/write.go
parent[chore] update URLs to forked source (diff)
downloadgotosocial-83b4c9ebc87d0fddf4e638f13e3af1483912e3a5.tar.xz
[chore] remove vendor
Diffstat (limited to 'vendor/github.com/jackc/pgio/write.go')
-rw-r--r--vendor/github.com/jackc/pgio/write.go40
1 files changed, 0 insertions, 40 deletions
diff --git a/vendor/github.com/jackc/pgio/write.go b/vendor/github.com/jackc/pgio/write.go
deleted file mode 100644
index 96aedf9dd..000000000
--- a/vendor/github.com/jackc/pgio/write.go
+++ /dev/null
@@ -1,40 +0,0 @@
-package pgio
-
-import "encoding/binary"
-
-func AppendUint16(buf []byte, n uint16) []byte {
- wp := len(buf)
- buf = append(buf, 0, 0)
- binary.BigEndian.PutUint16(buf[wp:], n)
- return buf
-}
-
-func AppendUint32(buf []byte, n uint32) []byte {
- wp := len(buf)
- buf = append(buf, 0, 0, 0, 0)
- binary.BigEndian.PutUint32(buf[wp:], n)
- return buf
-}
-
-func AppendUint64(buf []byte, n uint64) []byte {
- wp := len(buf)
- buf = append(buf, 0, 0, 0, 0, 0, 0, 0, 0)
- binary.BigEndian.PutUint64(buf[wp:], n)
- return buf
-}
-
-func AppendInt16(buf []byte, n int16) []byte {
- return AppendUint16(buf, uint16(n))
-}
-
-func AppendInt32(buf []byte, n int32) []byte {
- return AppendUint32(buf, uint32(n))
-}
-
-func AppendInt64(buf []byte, n int64) []byte {
- return AppendUint64(buf, uint64(n))
-}
-
-func SetInt32(buf []byte, n int32) {
- binary.BigEndian.PutUint32(buf, uint32(n))
-}