IBinaryFileNode.md

June 4, 2025 · View on GitHub

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core

IBinaryFileNode Interface

Interface for binary file nodes that support both text and binary content.

public interface IBinaryFileNode : Atypical.VirtualFileSystem.Core.Contracts.IFileNode, Atypical.VirtualFileSystem.Core.Contracts.IVirtualFileSystemNode

Derived
BinaryFileNode

Implements IFileNode, IVirtualFileSystemNode

Properties
BinaryContentGets or sets the binary content of the file.
IsBinaryGets a value indicating whether this file contains binary data.
SizeInBytesGets the size of the binary content in bytes.
Methods
SetBinaryContent(byte[])Sets the content from binary data.
SetContentFromBase64(string)Sets the content from a base64 encoded string.
SetTextContent(string)Sets the content from a text string and clears binary content.
ToBase64String()Gets the binary content as a base64 encoded string.