NewWireWriter creates a new WireRW for writing to. This is intended strictly for writing to the binary wire format that Postgres expects, and should not be used for internal write operations (utils.Writer is for internal use).
()
| 31 | // NewWireWriter creates a new WireRW for writing to. This is intended strictly for writing to the binary wire format |
| 32 | // that Postgres expects, and should not be used for internal write operations (utils.Writer is for internal use). |
| 33 | func NewWireWriter() *WireRW { |
| 34 | return &WireRW{ |
| 35 | buf: bytes.NewBuffer(make([]byte, 0, 8)), |
| 36 | readIdx: 0, |
| 37 | numSlice: make([]byte, 8), // 8 bytes will cover all floats and integers |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // NewWireReader creates a new WireRW for reading from data previously written by either a valid Postgres server or |
| 42 | // a WireRW instance. This is intended strictly for reading the binary wire format that Postgres expects, and should not |
no test coverage detected