mkql_unboxed_value_stream.cpp 485 B

123456789101112131415161718192021
  1. #include "mkql_unboxed_value_stream.h"
  2. #include <yql/essentials/minikql/mkql_string_util.h>
  3. namespace NKikimr {
  4. namespace NMiniKQL {
  5. TUnboxedValueStream::TUnboxedValueStream()
  6. : Value_(NUdf::TUnboxedValuePod::Zero())
  7. {}
  8. NUdf::TUnboxedValuePod TUnboxedValueStream::Value() {
  9. return Value_.Release();
  10. }
  11. void TUnboxedValueStream::DoWrite(const void* buf, size_t len) {
  12. Value_ = AppendString(Value_.Release(), NUdf::TStringRef(static_cast<const char*>(buf), len));
  13. }
  14. }
  15. }