MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / ReadInt32

Method ReadInt32

client/internal/network/conn.go:80–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80func (t *TCPClient) ReadInt32() (int32, error) {
81 b, err := t.ReadBytes(4)
82 if err != nil {
83 return 0, err
84 }
85 return int32(binary.BigEndian.Uint32(b)), nil
86}
87
88func (t *TCPClient) Close() {
89 t.close()

Callers 2

netLoopMethod · 0.45
readResponseFunction · 0.45

Calls 1

ReadBytesMethod · 0.95

Tested by

no test coverage detected