Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions program/src/state/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ use super::{Account, AccountDiscriminator, ZeroableOption, SEED_LEN};
/// Buffer account header.
///
/// A buffer holds a variable amount of data after its header information.
//
// Note: `Buffer` may be loaded directly from account data after only a
// length check (no owner check). All fields must be valid for any bit
// pattern.
#[repr(C)]
pub struct Buffer {
/// Account discriminator.
Expand Down
4 changes: 4 additions & 0 deletions program/src/state/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ pub struct UrlData<'a>(pub &'a str);
///
/// External data contains a reference (address) to an external account
/// and an offset and an optional length to specify the data range.
//
// Note: `ExternalData` may be loaded directly from account data after
// only a length check (no owner check). All fields must be valid for any
// bit pattern.
#[repr(C)]
pub struct ExternalData {
/// Address of the external account.
Expand Down
4 changes: 4 additions & 0 deletions program/src/state/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ use super::{
};

/// Metadata account header.
//
// Note: `Header` may be loaded directly from account data after only a
// length check (no owner check). All fields must be valid for any bit
// pattern.
#[repr(C)]
pub struct Header {
/// Account discriminator.
Expand Down
Loading