added mattr_accessor

Added mattr_accessor for truncate length