py_struct.h 412 B

1234567891011121314151617
  1. #pragma once
  2. #include "py_ptr.h"
  3. #include "py_ctx.h"
  4. namespace NPython {
  5. TPyObjectPtr ToPyStruct(
  6. const TPyCastContext::TPtr& castCtx,
  7. const NKikimr::NUdf::TType* type,
  8. const NKikimr::NUdf::TUnboxedValuePod& value);
  9. NKikimr::NUdf::TUnboxedValue FromPyStruct(
  10. const TPyCastContext::TPtr& ctx,
  11. const NKikimr::NUdf::TType* type, PyObject* value);
  12. } // namespace NPython