ri > SassC::Native::SassString

๐Ÿ“‹ NAME

SassC::Native::SassString < FFI::Struct โ€” Represents a Sass string value in the native FFI interface, inheriting from FFI::Struct.

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ” Access string valueSassC::Native::SassString[:value]Get the raw string content from the struct
๐Ÿ” Access lengthSassC::Native::SassString[:length]Get the byte length of the string
๐Ÿ”ง Create new stringSassC::Native::SassString.newAllocate a new SassString struct
๐Ÿ”ง Build from Ruby stringSassC::Native.sass_string_from_rb_string(str)Convert a Ruby string to a SassString struct

๐Ÿ“š Description

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).

๐Ÿ”ง Synopsis

require 'sassc'

# Accessing a SassString via FFI
string_struct = SassC::Native::SassString.new
string_struct[:value]   # => FFI::Pointer
string_struct[:length]  # => Integer

๐Ÿงฌ Members (FFI Struct Layout)

๐Ÿ”— See Also

๐Ÿ“ Also Found In

SassC::Native::SassString
๐Ÿ“‹ NAME ๐Ÿš€ Quick Reference ๐Ÿ“š Description ๐Ÿ”ง Synopsis ๐Ÿงฌ Members (FFI Struct Layout) ๐Ÿ”— See Also ๐Ÿ“ Also Found In

Generated 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)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format