MCPcopy Create free account
hub / github.com/pyca/cryptography / _extract_buffer_length

Function _extract_buffer_length

src/cryptography/utils.py:47–51  ·  view source on GitHub ↗
(obj: typing.Any)

Source from the content-addressed store, hash-verified

45
46
47def _extract_buffer_length(obj: typing.Any) -> typing.Tuple[typing.Any, int]:
48 from cryptography.hazmat.bindings._rust import _openssl
49
50 buf = _openssl.ffi.from_buffer(obj)
51 return buf, int(_openssl.ffi.cast("uintptr_t", buf))
52
53
54class InterfaceNotImplemented(Exception):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected