module Windows::MSVCRT::Buffer
Constants
- Memccpy
- Memchr
- Memcmp
- Memcpy
- MemcpyLLL
- MemcpyLPL
- MemcpyPLL
- MemcpyPPL
- Memicmp
- Memmove
- Memset
- Swab
Private Instance Methods
memccpy(dest, src, char, count)
click to toggle source
# File lib/windows/msvcrt/buffer.rb, line 46 def memccpy(dest, src, char, count) Memccpy.call(dest, src, char, count) end
memchr(buf, char, count)
click to toggle source
# File lib/windows/msvcrt/buffer.rb, line 50 def memchr(buf, char, count) Memchr.call(buf, char, count) end
memcmp(buf1, buf2, count)
click to toggle source
# File lib/windows/msvcrt/buffer.rb, line 54 def memcmp(buf1, buf2, count) Memcmp.call(buf1, buf2, count) end
memcpy(dest, src, size = src.length)
click to toggle source
Wrapper for the memcpy() function. Both the dest
and src
can be either a string or a memory address. If size
is omitted, it defaults to the length of src
.
# File lib/windows/msvcrt/buffer.rb, line 30 def memcpy(dest, src, size = src.length) if dest.is_a?(::Integer) if src.is_a?(::String) MemcpyLPL.call(dest, src, size) else MemcpyLLL.call(dest, src, size) end else if src.is_a?(::String) MemcpyPPL.call(dest, src, size) else MemcpyPLL.call(dest, src, size) end end end
memicmp(buf1, buf2, count)
click to toggle source
# File lib/windows/msvcrt/buffer.rb, line 58 def memicmp(buf1, buf2, count) Memicmp.call(buf1, buf2, count) end
memmove(dest, src, count)
click to toggle source
# File lib/windows/msvcrt/buffer.rb, line 62 def memmove(dest, src, count) Memmove.call(dest, src, count) end
memset(dest, char, count)
click to toggle source
# File lib/windows/msvcrt/buffer.rb, line 66 def memset(dest, char, count) Memset.call(dest, char, count) end
swab(src, dest, count)
click to toggle source
# File lib/windows/msvcrt/buffer.rb, line 70 def swab(src, dest, count) Swab.call(src, dest, count) end