Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ahupp/python-magic
/ magic_buffer
Function
magic_buffer
magic/__init__.py:306–307 ·
view source on GitHub ↗
(cookie, buf)
Source
from the content-addressed store, hash-verified
304
305
306
def
magic_buffer(cookie, buf):
307
return
_magic_buffer(cookie, buf, len(buf))
308
309
310
magic_descriptor = libmagic.magic_descriptor
Callers
1
from_buffer
Method · 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…