libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
FILE_STREAM_INFORMATION.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#include "FILE_INFORMATION.hh"
17
19
20#include <cstdint>
21#include <string>
22
23namespace introvirt {
24namespace windows {
25namespace nt {
26
32 public:
33 virtual uint32_t NextEntryOffset() const = 0;
34 virtual void NextEntryOffset(uint32_t value) = 0;
35
36 virtual const std::string& StreamName() const = 0;
37 virtual void StreamName(const std::string& StreamName) = 0;
38
39 virtual int64_t StreamSize() const = 0;
40 virtual void StreamSize(int64_t StreamSize) = 0;
41
42 virtual int64_t StreamAllocationSize() const = 0;
43 virtual void StreamAllocationSize(int64_t StreamAllocationSize) = 0;
44
45 virtual guest_ptr<void> ptr() const = 0;
46 virtual uint32_t buffer_size() const = 0;
47
48 // Assign this entry the value of another one
50
51 static std::shared_ptr<FILE_STREAM_INFORMATION_ENTRY> make_shared(const guest_ptr<void>& ptr);
52
53 virtual ~FILE_STREAM_INFORMATION_ENTRY() = default;
54};
55
71
72} /* namespace nt */
73} /* namespace windows */
74} /* namespace introvirt */
Definition guest_ptr.hh:88
An abstract class reprseneting a more specific file information buffer.
Definition FILE_INFORMATION.hh:38
A single entry from a FILE_STREAM_INFORMATION buffer.
Definition FILE_STREAM_INFORMATION.hh:31
virtual const std::string & StreamName() const =0
virtual void StreamSize(int64_t StreamSize)=0
virtual FILE_STREAM_INFORMATION_ENTRY & operator=(const FILE_STREAM_INFORMATION_ENTRY &)=0
virtual uint32_t buffer_size() const =0
virtual ~FILE_STREAM_INFORMATION_ENTRY()=default
virtual guest_ptr< void > ptr() const =0
static std::shared_ptr< FILE_STREAM_INFORMATION_ENTRY > make_shared(const guest_ptr< void > &ptr)
virtual void NextEntryOffset(uint32_t value)=0
virtual int64_t StreamSize() const =0
virtual void StreamAllocationSize(int64_t StreamAllocationSize)=0
virtual void StreamName(const std::string &StreamName)=0
virtual uint32_t NextEntryOffset() const =0
virtual int64_t StreamAllocationSize() const =0
A buffer that holds a list of FILE_STREAM_INFORMATION elements.
Definition FILE_STREAM_INFORMATION.hh:59
virtual const_iterator end() const =0
virtual const_iterator begin() const =0
virtual iterator erase(const const_iterator &position)=0
Iterator helper for _INFORMATION types that have a NextEntryOffset field.
Definition offset_iterator.hh:34
Core IntroVirt classes.
Definition Cr0.hh:20