Macro libyml::STRING_ASSIGN

source ·
macro_rules! STRING_ASSIGN {
    ($string:expr, $length:expr) => { ... };
}
Expand description

Assigns a new value to a YamlStringT struct.

This macro creates a new YamlStringT instance with the given start and end pointers. The end pointer is calculated by offsetting the start pointer by the given length. The pointer is set to the start pointer.

§Parameters

  • string: A pointer to the start of the string.
  • length: The length of the string.

§Return

A new YamlStringT instance with the given start, end, and pointer values.