Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
1b58bdc2
Unverified
Commit
1b58bdc2
authored
Feb 13, 2021
by
pfeatherstone
Committed by
GitHub
Feb 12, 2021
Browse files
[SERIALIZATION] updated _abstract file (#2306)
Co-authored-by:
pf
<
pf@pf-ubuntu-dev
>
parent
479b69e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
dlib/vectorstream/vectorstream_abstract.h
dlib/vectorstream/vectorstream_abstract.h
+14
-8
No files found.
dlib/vectorstream/vectorstream_abstract.h
View file @
1b58bdc2
...
@@ -42,18 +42,24 @@ namespace dlib
...
@@ -42,18 +42,24 @@ namespace dlib
be used. Therefore, any time data is written to this stream it will
be used. Therefore, any time data is written to this stream it will
immediately show up in the buffer.
immediately show up in the buffer.
!*/
!*/
std
::
istream
&
seekg
(
vectorstream
(
std
::
streampos
pos
std
::
vector
<
int8_t
>&
buffer
);
);
/*!
/*!
ensures
ensures
- The next read from this object will read from the position buffer[pos],
- This constructor has the same contract as the previous constructor
where buffer is the std::vector given to this object's constructor. Note
except the buffer is now std::vector<int8_t>
that if pos >= buffer.size() then the next read will simply return EOF.
!*/
- returns *this
vectorstream
(
std
::
vector
<
uint8_t
>&
buffer
);
/*!
ensures
- This constructor has the same contract as the previous constructor
except the buffer is now std::vector<uint8_t>
!*/
!*/
};
};
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment