TensorStore
tensorstore::GetByteExtent[strided_layout]
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
        • Data types
        • Array
          • E ContainerKind
          • C ByteStridedPointer
          • C StridedLayout
            • Data members
            • Types
            • Methods
            • Constructors
            • Assignment
            • Accessors
            • Indexing
            • Friend functions
            • Related Types
            • Related Constants
            • Related Functions
              • F ComputeStrides
              • F IndexInnerProduct
              • F InitializeContiguousLayout [layout]
              • F InitializeContiguousLayout [domain, layout]
              • F InitializeContiguousLayout [shape, layout]
              • F GetSubLayoutView
              • F GetBoxDomainOf
              • F IsContiguousLayout
              • F IsBroadcastScalar
              • F GetByteExtent
            • Broadcasting
          • C ElementPointer
          • C Array
          • C TransformedArray
          • Transformation
          • Iteration
        • Key-value storage
        • Downsampling
        • Utilities
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    #include "tensorstore/strided_layout.h"
    template <DimensionIndex Rank,
              ArrayOriginKind OriginKind,
              ContainerKind CKind>
    Index tensorstore::GetByteExtent(
        
    const StridedLayout<Rank, OriginKind, CKind>& layout,
        
    Index element_size);

    Returns smallest number of contiguous bytes into which the specified layout fits.