summaryrefslogtreecommitdiffstats
path: root/src/lib/netlist/plib/pstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/pstring.h')
-rw-r--r--src/lib/netlist/plib/pstring.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/pstring.h b/src/lib/netlist/plib/pstring.h
index 80a8fc4e78e..664b31c8761 100644
--- a/src/lib/netlist/plib/pstring.h
+++ b/src/lib/netlist/plib/pstring.h
@@ -31,6 +31,7 @@ struct pstr_t
std::size_t len() const { return m_len; }
void inc() { m_ref_count++; }
bool dec_and_check() { --m_ref_count; return m_ref_count == 0; }
+ void copy_from(char *p, std::size_t n) { std::copy(p, p + n, str()); }
private:
int m_ref_count;
std::size_t m_len;
@@ -185,8 +186,6 @@ private:
int pcmp(const pstring_t &right) const;
- int pcmp(const mem_t *right) const;
-
void pcopy(const mem_t *from, std::size_t size);
void pcopy(const mem_t *from);