SassC::Native::SassString < FFI::Struct โ Represents a Sass string value in the native FFI interface, inheriting from FFI::Struct.
| Use Case | Command | Description |
|---|---|---|
| ๐ Access string value | SassC::Native::SassString[:value] | Get the raw string content from the struct |
| ๐ Access length | SassC::Native::SassString[:length] | Get the byte length of the string |
| ๐ง Create new string | SassC::Native::SassString.new | Allocate a new SassString struct |
| ๐ง Build from Ruby string | SassC::Native.sass_string_from_rb_string(str) | Convert a Ruby string to a SassString struct |
SassC::Native::SassString is a subclass of FFI::Struct that maps to the native Sass_String type from the libsass C library. It provides the interface to handle string values within the SassC native binding layer.
This struct is used internally by SassC to pass string data between Ruby and the native libsass library through FFI (Foreign Function Interface).
require 'sassc'
# Accessing a SassString via FFI
string_struct = SassC::Native::SassString.new
string_struct[:value] # => FFI::Pointer
string_struct[:length] # => Integer
:value โ ๐งต Pointer to the string data (C char*):length โ ๐ Length of the string in bytes (C size_t)/home/chedong/.local/share/rdocGenerated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 18:40 @216.73.216.177
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format