MCPcopy Index your code
hub / github.com/Textualize/textual / peek_byte

Function peek_byte

src/textual/_binary_encode.py:202–208  ·  view source on GitHub ↗

Get the byte at the current position, but don't advance position. Returns: A bytes object with a single byte.

()

Source from the content-addressed store, hash-verified

200 return character
201
202 def peek_byte() -> bytes:
203 """Get the byte at the current position, but don't advance position.
204
205 Returns:
206 A bytes object with a single byte.
207 """
208 return encoded[position : position + 1]
209
210 def get_bytes(size: int) -> bytes:
211 """Get a number of bytes of encode data.

Callers 3

decode_listFunction · 0.85
decode_tupleFunction · 0.85
decode_dictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…