mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 11:26:02 +03:00
clang-format
This commit is contained in:
parent
c49e261fa7
commit
5bbfb93ec2
13 changed files with 510 additions and 592 deletions
|
@ -1,20 +1,13 @@
|
|||
|
||||
#include "callback_ostream.h"
|
||||
|
||||
void CallbackOstream::write_impl(const char *Ptr, size_t Size)
|
||||
{
|
||||
void CallbackOstream::write_impl(const char *Ptr, size_t Size) {
|
||||
callback(Ptr, Size);
|
||||
currentPos += Size;
|
||||
}
|
||||
|
||||
uint64_t CallbackOstream::current_pos() const
|
||||
{
|
||||
return currentPos;
|
||||
}
|
||||
uint64_t CallbackOstream::current_pos() const { return currentPos; }
|
||||
|
||||
CallbackOstream::CallbackOstream(CallbackOstream::CallbackT c):
|
||||
callback(c)
|
||||
{
|
||||
SetUnbuffered();
|
||||
CallbackOstream::CallbackOstream(CallbackOstream::CallbackT c) : callback(c) {
|
||||
SetUnbuffered();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue