Home | History | Annotate | Download | only in winusb

Lines Matching refs:buffer

142 bool AdbWinUsbInterfaceObject::GetSerialNumber(void* buffer,

158 // buffer and then loop through WinUsb_GetDescriptor calls, doubling up
159 // string buffer size every time ERROR_INSUFFICIENT_BUFFER is returned.
161 // Preallocate reasonably sized buffer on the stack.
166 // Buffer byte size
183 // Double up buffer size and reallocate string buffer
201 // Lets see if requested buffer is big enough to fit the string
202 if ((NULL == buffer) || (*buffer_char_size < (str_len + 1))) {
203 // Requested buffer is too small.
216 reinterpret_cast<PSTR>(buffer),
220 reinterpret_cast<char*>(buffer)[str_len] = '\0';
225 // For wide char output just copy string buffer,
227 CopyMemory(buffer, ser_num->bString, bytes_written);
228 reinterpret_cast<wchar_t*>(buffer)[str_len] = L'\0';