MCPcopy Create free account
hub / github.com/devoxin/Lavalink.py / write_long

Method write_long

lavalink/dataio.py:240–250  ·  view source on GitHub ↗

Writes a long to the stream. Parameters ---------- long_value: :class:`int` The long to write.

(self, long_value: int)

Source from the content-addressed store, hash-verified

238 self._write(enc)
239
240 def write_long(self, long_value: int):
241 """
242 Writes a long to the stream.
243
244 Parameters
245 ----------
246 long_value: :class:`int`
247 The long to write.
248 """
249 enc = struct.pack('>Q', long_value)
250 self._write(enc)
251
252 def write_nullable_utf(self, utf_string: Optional[str]):
253 """

Callers 3

encode_track_v2Function · 0.95
encode_track_v3Function · 0.95
_write_track_commonFunction · 0.80

Calls 1

_writeMethod · 0.95

Tested by

no test coverage detected