module Botan::FFI::MemoryPointer

@api private

Public Class Methods

from_data(data) click to toggle source
# File lib/botan/utils.rb, line 96
def from_data(data)
  buf = FFI::MemoryPointer.new(:uint8, data.bytesize)
  buf.write_bytes(data)
  buf
end