mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
2f08fb6583
Some of the homebrew are a bit larger, it's nice to see a speed and not just the progress bar.
19 lines
362 B
C++
19 lines
362 B
C++
#pragma once
|
|
|
|
#include "Common/Buffer.h"
|
|
|
|
namespace net {
|
|
|
|
class Buffer : public ::Buffer {
|
|
public:
|
|
bool FlushSocket(uintptr_t sock, double timeout, bool *cancelled = nullptr);
|
|
|
|
bool ReadAllWithProgress(int fd, int knownSize, float *progress, float *kBps, bool *cancelled);
|
|
|
|
// < 0: error
|
|
// >= 0: number of bytes read
|
|
int Read(int fd, size_t sz);
|
|
};
|
|
|
|
}
|