Numworks Epsilon
1.4.1
Graphing Calculator Operating System
url_descriptor.cpp
Go to the documentation of this file.
1
#include "
url_descriptor.h
"
2
#include <string.h>
3
4
namespace
Ion
{
5
namespace
USB
{
6
namespace
Device {
7
8
void
URLDescriptor::push
(
Channel
*
c
)
const
{
9
Descriptor::push
(
c
);
10
c
->push(m_bScheme);
11
const
char
* stringPointer = m_string;
12
while
(*stringPointer != 0) {
13
c
->push(*stringPointer);
14
stringPointer++;
15
}
16
}
17
18
uint8_t
URLDescriptor::bLength
()
const
{
19
// The script is returned in UTF-8.
20
return
Descriptor::bLength
() +
sizeof
(
uint8_t
) +
strlen
(m_string);
21
}
22
23
}
24
}
25
}
uint8_t
unsigned char uint8_t
Definition:
stdint.h:4
c
c(generic_all_nodes)
Ion::USB::Device::Descriptor::push
void push(Channel *c) const override
Definition:
descriptor.cpp:8
strlen
size_t strlen(const char *s)
Definition:
strlen.c:3
Ion::USB::Device::Streamable::Channel
Definition:
streamable.h:15
Ion::USB::Device::URLDescriptor::bLength
virtual uint8_t bLength() const override
Definition:
url_descriptor.cpp:18
USB
Definition:
app.cpp:5
url_descriptor.h
Ion::USB::Device::URLDescriptor::push
void push(Channel *c) const override
Definition:
url_descriptor.cpp:8
Ion
Definition:
backlight.h:6
Ion::USB::Device::Descriptor::bLength
virtual uint8_t bLength() const
Definition:
descriptor.h:22
epsilon
ion
src
device
usb
stack
url_descriptor.cpp
Generated by
1.8.14