mgetBuffer()
See original GitHub issueIs there a way to do mgetBuffer()
? I want mget
that returns array of Buffers. Can’t find anything in documentation…
UPD: answering my own question. Apparently, there IS mgetBuffer()
, it’s just missing in the typescript typings for some reason!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
MemoryStream.GetBuffer Method (System.IO) - Microsoft Learn
Returns the array of unsigned bytes from which this stream was created.
Read more >When is GetBuffer() on MemoryStream ever useful?
GetBuffer() always assumes you know the structure of the data fed into the string (and that's its use) ...
Read more >StringWriter getBuffer() method in Java with Examples
The getBuffer() method of StringWriter Class in Java is used to get the StringBuffer representation of this StringWriter instance.
Read more >[Tip]:MemoryStream.GetBuffer() vs. MemoryStream.ToArray()
GetBuffer() method to retrieve the text inside the stream. ... Tip: use ToArray instead of GetBuffer, ToArray works when the MemoryStream is ...
Read more >Use of CString::GetBuffer() - Google Groups
> of the cstring and 32,000 is the maximum length of that char*. Hmm..., no. The parameter passed to GetBuffer() specifies a minimun...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@knoxcard thanks for asking.
I think these’s still an issue with typescript typings. But also I see that typings are from external package from DefinitelyTyped (
@types/ioredis
). Then yes, you probably can close this issue.But just out of curiosity, why doesn’t
ioredis
export types inpackage.json
, so it can be used without external types from@types/ioredis
? It should be quite trivial to do.Yes, that’s the same experience that I had. And the conclusion was that it’s indeed missing in Types, but exists in the Runtime (in js). So, I used it despite them being missing in Types.