2024-02-13 16:48:47 +00:00
|
|
|
package frameproto
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
)
|
|
|
|
|
2024-02-15 17:43:14 +00:00
|
|
|
func writeMetaPropertyContent(writer io.Writer, property string, content string) error {
|
2024-02-13 16:48:47 +00:00
|
|
|
|
|
|
|
if nil == writer {
|
2024-02-15 17:43:14 +00:00
|
|
|
return errNilWriter
|
2024-02-13 16:48:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var buffer [bufferSize]byte
|
|
|
|
var p []byte = buffer[0:0]
|
|
|
|
|
|
|
|
p = appendMetaPropertyContent(p, property, content)
|
|
|
|
|
2024-02-15 17:43:14 +00:00
|
|
|
_, err := writer.Write(p)
|
|
|
|
return err
|
2024-02-13 16:48:47 +00:00
|
|
|
}
|