#include <binary_protocol.h>
◆ validate()
static bool SDFileTransferProtocol::Packet::Open::validate |
( |
char * |
buffer, |
|
|
size_t |
length |
|
) |
| |
|
static |
62 return (
length >
sizeof(Open) && buffer[
length - 1] ==
'\0');
◆ decode()
static Open& SDFileTransferProtocol::Packet::Open::decode |
( |
char * |
buffer | ) |
|
|
static |
66 return *reinterpret_cast<Open*>(buffer);
◆ compression_enabled()
bool SDFileTransferProtocol::Packet::Open::compression_enabled |
( |
| ) |
|
68 {
return compression & 0x1; }
◆ dummy_transfer()
bool SDFileTransferProtocol::Packet::Open::dummy_transfer |
( |
| ) |
|
69 {
return dummy & 0x1; }
◆ filename()
static char* SDFileTransferProtocol::Packet::Open::filename |
( |
| ) |
|
|
static |