Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 2.17 KB

File metadata and controls

28 lines (21 loc) · 2.17 KB

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
BinaryContent Gets or sets the binary content of the file.
IsBinary Gets a value indicating whether this file contains binary data.
SizeInBytes Gets 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.