mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
*** empty log message ***
This commit is contained in:
parent
a3002f841c
commit
f3b6fdc154
@ -207,6 +207,19 @@ disconnect_from_server(void) {
|
|||||||
_connected = false;
|
_connected = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: Downloader::change_buffer_size
|
||||||
|
// Access: Public
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
void Downloader::
|
||||||
|
change_buffer_size(int size) {
|
||||||
|
if (_buffer->get_length() == size)
|
||||||
|
return;
|
||||||
|
_buffer.clear();
|
||||||
|
_buffer = new Buffer(size);
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: Downloader::request_download
|
// Function: Downloader::request_download
|
||||||
// Access: Public
|
// Access: Public
|
||||||
|
@ -46,6 +46,8 @@ PUBLISHED:
|
|||||||
int last_byte, int total_bytes,
|
int last_byte, int total_bytes,
|
||||||
bool partial_content = true);
|
bool partial_content = true);
|
||||||
|
|
||||||
|
void change_buffer_size(int size);
|
||||||
|
|
||||||
INLINE void set_bandwidth(float bytes);
|
INLINE void set_bandwidth(float bytes);
|
||||||
INLINE float get_bandwidth(void) const;
|
INLINE float get_bandwidth(void) const;
|
||||||
INLINE void enable_download(bool val);
|
INLINE void enable_download(bool val);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user