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 {
10  c->push(m_bScheme);
11  const char * stringPointer = m_string;
12  while (*stringPointer != 0) {
13  c->push(*stringPointer);
14  stringPointer++;
15  }
16 }
17 
19  // The script is returned in UTF-8.
20  return Descriptor::bLength() + sizeof(uint8_t) + strlen(m_string);
21 }
22 
23 }
24 }
25 }
unsigned char uint8_t
Definition: stdint.h:4
c(generic_all_nodes)
void push(Channel *c) const override
Definition: descriptor.cpp:8
size_t strlen(const char *s)
Definition: strlen.c:3
virtual uint8_t bLength() const override
Definition: app.cpp:5
void push(Channel *c) const override
Definition: backlight.h:6
virtual uint8_t bLength() const
Definition: descriptor.h:22