vfs: check userland buffers before reading them.
[haiku.git] / headers / private / debugger / value / value_nodes / PrimitiveValueNode.h
blob19c3439819a8ad7ebca6897d8da320c509d7d53b
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef PRIMITIVE_VALUE_NODE_H
6 #define PRIMITIVE_VALUE_NODE_H
9 #include "ValueNode.h"
12 class PrimitiveType;
15 class PrimitiveValueNode : public ChildlessValueNode {
16 public:
17 PrimitiveValueNode(ValueNodeChild* nodeChild,
18 PrimitiveType* type);
19 virtual ~PrimitiveValueNode();
21 virtual Type* GetType() const;
23 virtual status_t ResolvedLocationAndValue(
24 ValueLoader* valueLoader,
25 ValueLocation*& _location,
26 Value*& _value);
28 private:
29 PrimitiveType* fType;
33 #endif // PRIMITIVE_VALUE_NODE_H